Skip to content

Commit a8d8d63

Browse files
authored
add quick add inline styles to css, match other modals/notices (#111)
1 parent 56cce6c commit a8d8d63

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

lib/ui/quickadd.tsx

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,16 @@ export const QuickAdd = {
2323
height: "100%"
2424
}}></div>
2525

26-
<div style={{
26+
<div class="notice" style={{
2727
position: "relative",
2828
marginLeft: "auto",
2929
marginRight: "auto",
30-
width: "45vw",
31-
borderRadius: "0.5rem",
32-
filter: "drop-shadow(2px 2px 4px #5555)",
3330
marginTop: "20vh",
34-
padding: "2rem",
35-
background: "white"
3631
}}>
37-
<h3 style={{margin: "0"}}>Quick Add</h3>
38-
<hr />
32+
<h3>Quick Add</h3>
3933
<OutlineEditor workbench={workbench} node={workbench.quickadd} panel={panel} />
40-
<hr />
41-
<div style={{textAlign: "right"}}>
42-
<button style={{padding: "0.5rem", margin: "0.25rem"}} onclick={() => {
34+
<div class="button-bar">
35+
<button class="primary" onclick={() => {
4336
workbench.commitQuickAdd();
4437
workbench.closeQuickAdd();
4538
}}>Add to Today</button>

web/static/app/main.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ svg.node-bullet circle#node-collapsed {
229229
font-weight: var(--weight-semibold);
230230
font-size: var(--text-small);
231231
}
232+
/*todo: combine common styles for palette/search*/
232233
.palette .selected, .search .selected {
233234
background: var(--gray-200);
234235
border-radius: var(--border-radius);

0 commit comments

Comments
 (0)