mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
web: conform notebook header with mobile ui
This commit is contained in:
@@ -78,12 +78,26 @@ export function NotebookHeader(props: {
|
|||||||
sx={{
|
sx={{
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
p: 1,
|
p: 1,
|
||||||
pb: 4,
|
gap: "7px",
|
||||||
bg: "var(--background-secondary)",
|
bg: "var(--background-secondary)",
|
||||||
borderBottom: "1px solid var(--border)"
|
borderBottom: "1px solid var(--border)"
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<NotebookCrumbs notebook={notebook} />
|
<NotebookCrumbs notebook={notebook} />
|
||||||
|
<Notebook2
|
||||||
|
size={24}
|
||||||
|
sx={{
|
||||||
|
alignSelf: "start"
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<Text
|
||||||
|
data-test-id="notebook-title"
|
||||||
|
variant="heading"
|
||||||
|
sx={{ fontSize: "title" }}
|
||||||
|
>
|
||||||
|
{title}
|
||||||
|
</Text>
|
||||||
|
{description && <Text variant="body">{description}</Text>}
|
||||||
<Flex sx={{ alignItems: "center", justifyContent: "space-between" }}>
|
<Flex sx={{ alignItems: "center", justifyContent: "space-between" }}>
|
||||||
<Flex sx={{ alignItems: "center", gap: 2 }}>
|
<Flex sx={{ alignItems: "center", gap: 2 }}>
|
||||||
<Text variant="subBody">{getFormattedDate(dateEdited, "date")}</Text>
|
<Text variant="subBody">{getFormattedDate(dateEdited, "date")}</Text>
|
||||||
@@ -120,18 +134,6 @@ export function NotebookHeader(props: {
|
|||||||
</Button>
|
</Button>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
<Text
|
|
||||||
data-test-id="notebook-title"
|
|
||||||
variant="heading"
|
|
||||||
sx={{ fontSize: "title", mt: 2 }}
|
|
||||||
>
|
|
||||||
{title}
|
|
||||||
</Text>
|
|
||||||
{description && (
|
|
||||||
<Text variant="body" sx={{ mt: 1 }}>
|
|
||||||
{description}
|
|
||||||
</Text>
|
|
||||||
)}
|
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user