mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
Fix layout shift
This commit is contained in:
@@ -181,8 +181,8 @@
|
|||||||
<div class="scm-loading__spinner" />
|
<div class="scm-loading__spinner" />
|
||||||
<p class="scm-loading__text">Loading editor...</p>
|
<p class="scm-loading__text">Loading editor...</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="cm-editor"><pre class="scm-pre">{value}</pre></div>
|
||||||
<pre class="scm-pre cm-editor">{value}</pre>
|
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<!-- <CodeMirror
|
<!-- <CodeMirror
|
||||||
@@ -199,7 +199,7 @@
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
.editor-wrapper {
|
.editor-wrapper {
|
||||||
min-height: 200px;
|
/* min-height: 200px; */
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
background-color: var(--surface-secondary-color);
|
background-color: var(--surface-secondary-color);
|
||||||
@@ -210,7 +210,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.scm-waiting {
|
.scm-waiting {
|
||||||
padding: 4px 2px 4px 6px;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.scm-waiting__loading {
|
.scm-waiting__loading {
|
||||||
@@ -241,6 +240,8 @@
|
|||||||
}
|
}
|
||||||
.scm-pre {
|
.scm-pre {
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
|
margin: 0;
|
||||||
|
padding: 4px 2px 4px 6px;
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
tab-size: 2;
|
tab-size: 2;
|
||||||
-moz-tab-size: 2;
|
-moz-tab-size: 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user