Skip to content

Commit bd4c3a4

Browse files
committed
Improve styling
1 parent bd9513a commit bd4c3a4

File tree

1 file changed

+25
-18
lines changed

1 file changed

+25
-18
lines changed

src/ui/flows/blog-post/SelectContent.tsx

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -120,29 +120,36 @@ function Section( props: {
120120
} = props;
121121

122122
return (
123-
<>
123+
<div
124+
style={ {
125+
border: '1px solid black',
126+
marginBottom: '1rem',
127+
padding: '1rem',
128+
} }
129+
>
124130
<div>
125-
{ label }: { value ?? 'Not found' }
126-
</div>
127-
<button
128-
disabled={ disabled }
129-
onClick={ async () => {
130-
onWaitingForSelection( true );
131-
await ContentBus.enableHighlighting();
132-
} }
133-
>
134-
Select
135-
</button>
136-
{ ! waitingForSelection ? null : (
131+
{ label }{ ' ' }
137132
<button
133+
disabled={ disabled }
138134
onClick={ async () => {
139-
onWaitingForSelection( false );
140-
await ContentBus.disableHighlighting();
135+
onWaitingForSelection( true );
136+
await ContentBus.enableHighlighting();
141137
} }
142138
>
143-
Cancel
139+
Select
144140
</button>
145-
) }
146-
</>
141+
{ ! waitingForSelection ? null : (
142+
<button
143+
onClick={ async () => {
144+
onWaitingForSelection( false );
145+
await ContentBus.disableHighlighting();
146+
} }
147+
>
148+
Cancel
149+
</button>
150+
) }
151+
</div>
152+
<div style={ { paddingTop: '1rem' } }>{ value ?? 'Not found' }</div>
153+
</div>
147154
);
148155
}

0 commit comments

Comments
 (0)