Skip to content

Commit 204deb7

Browse files
author
mrmrs
committed
Update styles of sidebar editor
1 parent 0f3b3c8 commit 204deb7

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

packages/gui/src/components/html/Editor.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const TABS_TRIGGER_STYLES: any = {
3737
}
3838
const TABS_CONTENT_STYLES: any = {
3939
width: 400,
40-
height: 'calc(100vh - 81px)',
40+
height: 'calc(100vh - 97px)',
4141
maxHeight: '100%',
4242
overflow: 'hidden',
4343
resize: 'horizontal',
@@ -50,13 +50,13 @@ const TABS_CONTENT_STYLES: any = {
5050

5151
const TABS_EDITOR_STYLES: any = {
5252
width: '400px',
53-
height: 'calc(100vh - 81px)',
53+
height: 'calc(100vh - 97px)',
5454
maxHeight: '100%',
5555
overflow: 'hidden',
5656
resize: 'horizontal',
5757
borderRightWidth: '1px',
5858
borderRightStyle: 'solid',
59-
borderColor: 'border',
59+
borderRightColor: 'border',
6060
'&::-webkit-scrollbar': { display: 'none' },
6161
scrollbarWidth: 0,
6262
}
@@ -140,6 +140,7 @@ export function HtmlEditor() {
140140
showAddProperties
141141
/>
142142
</div>
143+
<h4 sx={{ bg: 'backgroundOffset', py: 2, my: 0, px: 3, fontSize: 0, display: 'flex', alignItems: 'center', gap: '4px', borderTopWidth: '1px', borderTopStyle: 'solid', borderTopColor: 'border' }}><Layers size={15} /> Layers</h4>
143144
<div sx={{ height: '50%', position: 'relative', }}>
144145
<NodeEditor
145146
value={nodeValue}

packages/gui/src/components/html/Editors/NodeEditor.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import fuzzysort from 'fuzzysort'
2+
import { Layers } from 'react-feather'
23
import { HtmlNode } from '../types'
34
import { Label, Combobox } from '../../primitives'
45
import { SelectInput } from '../../inputs/SelectInput'
@@ -54,9 +55,9 @@ export function NodeEditor({
5455
position: 'sticky',
5556
top: 0,
5657
overflowY: 'scroll',
57-
borderTopWidth: '4px',
58-
borderTopStyle: 'solid',
59-
borderTopColor: 'border',
58+
// borderTopWidth: '1px',
59+
// borderTopStyle: 'solid',
60+
// borderTopColor: 'border',
6061
}}
6162
>
6263
<div

packages/gui/src/components/primitives/Combobox.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,12 @@ export function Combobox({
103103
WebkitAppearance: 'none',
104104
appearance: 'none',
105105
width: '100%',
106-
border: '1px solid',
107-
borderRadius: '6px',
108-
p: 1,
106+
borderWidth: '1px',
107+
borderStyle: 'solid',
108+
borderColor: 'inputBorder',
109+
borderRadius: '4px',
110+
p: 2,
111+
bg: 'background',
109112
}}
110113
/>
111114
<div

0 commit comments

Comments
 (0)