Skip to content

Commit de6ee31

Browse files
author
mrmrs
committed
Fixes for two design bugs
Changes active color style in theme to remove changing height of the row by adding a border Adds gap between refresh icon and combobox for components
1 parent 4988b18 commit de6ee31

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export const ComponentEditor = ({ value, onChange }: ComponentEditorProps) => {
9898
}}
9999
>
100100
<Label>Component</Label>
101-
<span sx={{ display: 'flex', alignItems: 'center' }}>
101+
<span sx={{ display: 'flex', alignItems: 'center', gap: '8px' }}>
102102
<Combobox
103103
key={value.tagName}
104104
value={value.tagName}
@@ -114,7 +114,7 @@ export const ComponentEditor = ({ value, onChange }: ComponentEditorProps) => {
114114
<RefreshCw
115115
size={15}
116116
strokeWidth={2}
117-
sx={{ color: 'muted', ml: 2 }}
117+
sx={{ color: 'muted' }}
118118
/>
119119
</IconButton>
120120
) : null}

packages/gui/src/components/primitives/ColorPicker/PreviewPalettePicker.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,14 @@ export function PreviewPalettePicker({
5353
appearance: 'none',
5454
WebkitAppearance: 'none',
5555
cursor: 'pointer',
56-
borderWidth: selected ? '2px' : '1px',
57-
borderColor: selected ? '#ff0000' : 'border',
58-
borderStyle: 'solid',
56+
boxShadow: selected ? 'inset 0 0 0 2px white, 0 0 0 2px '+color.value : 'inset 0 0 0 2px rgba(0,0,0,.15)',
5957
borderRadius: '9999px',
6058
padding: 0,
6159
margin: 0,
6260
width: '100%',
6361
aspectRatio: '1 / 1',
6462
backgroundColor: color.value,
63+
border: 0,
6564
}}
6665
onClick={() =>
6766
onChange({

0 commit comments

Comments
 (0)