change layout of brush editor side panel to limit its height and scroll when it gets too big
This commit is contained in:
parent
7465913944
commit
8aa38ae4c4
|
@ -90,6 +90,28 @@ main {
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&>.panels {
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 16px;
|
||||||
|
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: [left] 1fr [right] 384px;
|
||||||
|
|
||||||
|
/* Pass all events through. Children may receive events as normal. */
|
||||||
|
pointer-events: none;
|
||||||
|
|
||||||
|
&>* {
|
||||||
|
pointer-events: all;
|
||||||
|
}
|
||||||
|
|
||||||
|
&>rkgk-brush-editor {
|
||||||
|
grid-column: right / right;
|
||||||
|
height: fit-content;
|
||||||
|
max-height: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&>rkgk-canvas-renderer {
|
&>rkgk-canvas-renderer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -109,10 +131,6 @@ main {
|
||||||
|
|
||||||
&>rkgk-brush-editor {
|
&>rkgk-brush-editor {
|
||||||
width: 384px;
|
width: 384px;
|
||||||
position: absolute;
|
|
||||||
right: 0;
|
|
||||||
top: 0;
|
|
||||||
margin: 16px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&>#js-loading {
|
&>#js-loading {
|
||||||
|
@ -209,6 +227,7 @@ rkgk-throbber {
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
box-shadow: var(--panel-box-shadow);
|
box-shadow: var(--panel-box-shadow);
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Canvas renderer */
|
/* Canvas renderer */
|
||||||
|
@ -266,9 +285,9 @@ rkgk-reticle-cursor {
|
||||||
|
|
||||||
rkgk-brush-editor {
|
rkgk-brush-editor {
|
||||||
&>.text-area {
|
&>.text-area {
|
||||||
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding-top: 0.4em; /* to account for line-height */
|
|
||||||
resize: none;
|
resize: none;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
border: none;
|
border: none;
|
||||||
|
|
|
@ -27,7 +27,9 @@
|
||||||
<main>
|
<main>
|
||||||
<rkgk-canvas-renderer class="fullscreen"></rkgk-canvas-renderer>
|
<rkgk-canvas-renderer class="fullscreen"></rkgk-canvas-renderer>
|
||||||
<rkgk-reticle-renderer class="fullscreen"></rkgk-reticle-renderer>
|
<rkgk-reticle-renderer class="fullscreen"></rkgk-reticle-renderer>
|
||||||
|
<div class="panels fullscreen">
|
||||||
<rkgk-brush-editor></rkgk-brush-editor>
|
<rkgk-brush-editor></rkgk-brush-editor>
|
||||||
|
</div>
|
||||||
|
|
||||||
<rkgk-welcome>
|
<rkgk-welcome>
|
||||||
<dialog name="welcome-dialog" class="rkgk-panel">
|
<dialog name="welcome-dialog" class="rkgk-panel">
|
||||||
|
|
Loading…
Reference in a new issue