Files
openidea/src/ui/LogPane.module.css
T
Deng Liuanddengliu fbf57bed23 feat(plugins): generic streaming log editor tab for plugin web views (#2043)
A plugin web view can open a read-only editor tab that streams a process's output, with plugin-defined toggles, Find, wrap, zoom and Clear. The process is authorised in the backend against the exact granted `process:<program>` and its pinned executable, output is bounded, and the stream survives tab switches but ends when the tab closes, the plugin is disabled or the window closes. Adds a web-log test fixture and docs. Verified on macOS; Windows/Linux not run.

Co-authored-by: dengliu <5108773+dengliu@users.noreply.github.com>
2026-11-08 04:06:04 +08:00

55 lines
852 B
CSS

.pane {
flex: 1;
height: 100%;
min-height: 0;
display: flex;
flex-direction: column;
}
.toolbar {
height: 32px;
flex: none;
display: flex;
align-items: center;
gap: 12px;
padding: 0 10px;
border-bottom: 1px solid var(--border);
}
.flex {
flex: 1;
}
.output {
flex: 1;
min-height: 0;
position: relative;
overflow: hidden;
}
.log {
flex: 1;
min-height: 0;
margin: 0;
padding: 6px 10px;
overflow: auto;
font-family: var(--font-mono);
font-size: var(--fs-code);
line-height: var(--lh-code);
color: var(--fg-editor);
background: var(--bg-editor);
white-space: pre;
-webkit-user-select: text;
user-select: text;
cursor: default;
}
.log > div {
cursor: text;
}
.wrap {
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.stderr {
color: var(--danger);
}
.dim {
color: var(--fg-subtle);
}