mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add padding on bottom of notebooks, add cancel button to note editor
This commit is contained in:
parent
b719f5df2a
commit
f5792cfc3a
3 changed files with 16 additions and 9 deletions
|
|
@ -232,6 +232,16 @@ export function MarkdownNote(props: MarkdownNote): JSX.Element {
|
|||
marginLeft: 'auto',
|
||||
}}
|
||||
>
|
||||
<Button
|
||||
css={{ marginRight: '10px' }}
|
||||
style="ctaOutlineYellow"
|
||||
onClick={(event) => {
|
||||
props.setEditMode('preview')
|
||||
event.preventDefault()
|
||||
}}
|
||||
>
|
||||
Cancel
|
||||
</Button>
|
||||
<Button
|
||||
style="ctaDarkYellow"
|
||||
onClick={(event) => {
|
||||
|
|
|
|||
|
|
@ -74,12 +74,6 @@ export function HighlightView(props: HighlightViewProps): JSX.Element {
|
|||
|
||||
const { getReferenceProps, getFloatingProps } = useInteractions([hover])
|
||||
|
||||
console.log(
|
||||
'ref={refs.setFloating, style={floatingStyles}',
|
||||
refs.setFloating,
|
||||
floatingStyles
|
||||
)
|
||||
|
||||
return (
|
||||
<VStack
|
||||
ref={refs.setReference}
|
||||
|
|
|
|||
|
|
@ -290,9 +290,7 @@ export function NotebookContent(props: NotebookContentProps): JSX.Element {
|
|||
) : null}
|
||||
</HStack>
|
||||
</>
|
||||
{/* )} */}
|
||||
|
||||
{/* {tabSelected == 'highlights' && ( */}
|
||||
<VStack css={{ mt: '20px', gap: '30px' }}>
|
||||
{sortedHighlights.map((highlight) => (
|
||||
<HighlightViewItem
|
||||
|
|
@ -327,8 +325,13 @@ export function NotebookContent(props: NotebookContentProps): JSX.Element {
|
|||
You have not added any highlights to this document.
|
||||
</Box>
|
||||
)}
|
||||
<Box
|
||||
css={{
|
||||
width: '100%',
|
||||
height: '320px',
|
||||
}}
|
||||
></Box>
|
||||
</VStack>
|
||||
{/* )} */}
|
||||
|
||||
{showConfirmDeleteHighlightId && (
|
||||
<ConfirmationModal
|
||||
|
|
|
|||
Loading…
Reference in a new issue