mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 07:30:41 +09:00
Merge pull request #939 from bbassie/feature/resizable-console
Make the Web UI console resizable
This commit is contained in:
2 files changed
+49
-4
No files matched your search
@@ -174,18 +174,25 @@ body {
|
||||
height: 1px;
|
||||
}
|
||||
|
||||
/* Scroll headroom above the output so short output sits at the bottom; it is
|
||||
scroll content, not box padding, so it does not block dragging smaller. */
|
||||
.instance-console code .console-spacer {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.instance-console code {
|
||||
display: block;
|
||||
margin: 0;
|
||||
background: #000;
|
||||
border-color: #252525;
|
||||
/* Drag-resizable (the native handle needs the scroll overflow); height is set
|
||||
imperatively in LogConsole, border-box keeps padding out of offsetHeight. */
|
||||
box-sizing: border-box;
|
||||
height: 300px;
|
||||
min-height: 100px;
|
||||
resize: vertical;
|
||||
overflow-y: scroll;
|
||||
white-space: pre-wrap;
|
||||
|
||||
/* Make sure there's at least one pixel of scroll space, this */
|
||||
/* is necessary for the view to stick on the scroll anchor. */
|
||||
padding-top: 300px;
|
||||
}
|
||||
|
||||
.instance-console .factorio-time {
|
||||
|
||||
Reference in new issue
Block a user