Skip to content

add quick add inline styles to css, match other modals/notices #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions lib/ui/quickadd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,16 @@ export const QuickAdd = {
height: "100%"
}}></div>

<div style={{
<div class="notice" style={{
position: "relative",
marginLeft: "auto",
marginRight: "auto",
width: "45vw",
borderRadius: "0.5rem",
filter: "drop-shadow(2px 2px 4px #5555)",
marginTop: "20vh",
padding: "2rem",
background: "white"
}}>
<h3 style={{margin: "0"}}>Quick Add</h3>
<hr />
<h3>Quick Add</h3>
<OutlineEditor workbench={workbench} node={workbench.quickadd} panel={panel} />
<hr />
<div style={{textAlign: "right"}}>
<button style={{padding: "0.5rem", margin: "0.25rem"}} onclick={() => {
<div class="button-bar">
<button class="primary" onclick={() => {
workbench.commitQuickAdd();
workbench.closeQuickAdd();
}}>Add to Today</button>
Expand Down
1 change: 1 addition & 0 deletions web/static/app/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ svg.node-bullet circle#node-collapsed {
font-weight: var(--weight-semibold);
font-size: var(--text-small);
}
/*todo: combine common styles for palette/search*/
.palette .selected, .search .selected {
background: var(--gray-200);
border-radius: var(--border-radius);
Expand Down