styles: adjust spacing
This commit is contained in:
@@ -25,7 +25,7 @@ const NotesContextMenu = observer(({ appState }: Props) => {
|
|||||||
return appState.notes.contextMenuOpen ? (
|
return appState.notes.contextMenuOpen ? (
|
||||||
<div
|
<div
|
||||||
ref={contextMenuRef}
|
ref={contextMenuRef}
|
||||||
className="sn-dropdown max-w-80 flex flex-col"
|
className="sn-dropdown max-w-80 flex flex-col py-2"
|
||||||
style={{ position: 'absolute', ...appState.notes.contextMenuPosition }}
|
style={{ position: 'absolute', ...appState.notes.contextMenuPosition }}
|
||||||
>
|
>
|
||||||
<NotesOptions
|
<NotesOptions
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export const NotesOptions = observer(
|
|||||||
|
|
||||||
const trashButtonRef = useRef<HTMLButtonElement>();
|
const trashButtonRef = useRef<HTMLButtonElement>();
|
||||||
|
|
||||||
const iconClass = 'fill-current color-neutral mr-2.5';
|
const iconClass = 'fill-current color-neutral mr-2';
|
||||||
const buttonClass =
|
const buttonClass =
|
||||||
'flex items-center border-0 capitalize focus:inner-ring-info ' +
|
'flex items-center border-0 capitalize focus:inner-ring-info ' +
|
||||||
'cursor-pointer hover:bg-contrast color-text bg-transparent h-10 px-3 ' +
|
'cursor-pointer hover:bg-contrast color-text bg-transparent h-10 px-3 ' +
|
||||||
@@ -64,7 +64,7 @@ export const NotesOptions = observer(
|
|||||||
Show Preview
|
Show Preview
|
||||||
</span>
|
</span>
|
||||||
</Switch>
|
</Switch>
|
||||||
<div className="h-1px my-2.5 bg-secondary-contrast"></div>
|
<div className="h-1px my-2 bg-secondary-contrast"></div>
|
||||||
<button
|
<button
|
||||||
onBlur={closeOnBlur}
|
onBlur={closeOnBlur}
|
||||||
className={buttonClass}
|
className={buttonClass}
|
||||||
|
|||||||
@@ -36,13 +36,9 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mr-2\.5 {
|
.my-2 {
|
||||||
margin-right: 0.625rem;
|
margin-top: 0.5rem;
|
||||||
}
|
margin-bottom: 0.5rem;
|
||||||
|
|
||||||
.my-2\.5 {
|
|
||||||
margin-top: 0.625rem;
|
|
||||||
margin-bottom: 0.625rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.outline-none {
|
.outline-none {
|
||||||
|
|||||||
Reference in New Issue
Block a user