mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-11 16:57:26 +02:00
renamed code editor content css class to avoid collisions
This commit is contained in:
1 parent
35ddf50cbf
commit
d71a589733
10 files changed
+15
-15
No files matched your search
@@ -145,7 +145,7 @@ window.app.components.codeEditor = function(propsArg = {}) {
|
||||
autocomplete: "off",
|
||||
autocapitalize: "off",
|
||||
role: "textbox",
|
||||
className: "editor-content",
|
||||
className: "code-editor-content",
|
||||
"html-data-placeholder": () => props.placeholder,
|
||||
onmount: (el) => {
|
||||
// auto change change textContent only if it props.value was
|
||||
|
||||
+3
-3
@@ -1091,7 +1091,7 @@ button {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
.editor-content,
|
||||
.code-editor-content,
|
||||
.highlight-overlay {
|
||||
display: block;
|
||||
width: 100%;
|
||||
@@ -1119,7 +1119,7 @@ button {
|
||||
top: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
.editor-content {
|
||||
.code-editor-content {
|
||||
color: transparent;
|
||||
resize: none;
|
||||
caret-color: var(--surfaceTxtHintColor);
|
||||
@@ -1137,7 +1137,7 @@ button {
|
||||
padding-bottom: 9px;
|
||||
}
|
||||
&.pre-wrap {
|
||||
.editor-content,
|
||||
.code-editor-content,
|
||||
.highlight-overlay {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
.code-editor {
|
||||
z-index: 0;
|
||||
min-height: 41px;
|
||||
.editor-content:empty::before {
|
||||
.code-editor-content:empty::before {
|
||||
font-family: var(--baseFontFamily);
|
||||
}
|
||||
.highlight-overlay {
|
||||
color: var(--surfaceTxtColor);
|
||||
}
|
||||
.editor-content, .highlight-overlay {
|
||||
.code-editor-content, .highlight-overlay {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user