diff --git a/public/index.css b/public/index.css index 9ba95fa79..6ef8ebd81 100644 --- a/public/index.css +++ b/public/index.css @@ -126,4 +126,42 @@ body { 2px calc(100% - 6px), 0 calc(100% - 6px) ); + + --3px-top-corner-fill: polygon( + 0 6px, + 2px 6px, + 2px 4px, + 4px 4px, + 4px 2px, + 6px 2px, + 6px 0, + calc(100% - 6px) 0, + calc(100% - 6px) 2px, + calc(100% - 4px) 2px, + calc(100% - 4px) 4px, + calc(100% - 2px) 4px, + calc(100% - 2px) 6px, + 100% 6px, + 100% 100%, + 0 100% + ); + + --3px-bottom-corner-fill: polygon( + 0 0, + 100% 0, + 100% calc(100% - 6px), + calc(100% - 2px) calc(100% - 6px), + calc(100% - 2px) calc(100% - 4px), + calc(100% - 4px) calc(100% - 4px), + calc(100% - 4px) calc(100% - 2px), + calc(100% - 6px) calc(100% - 2px), + calc(100% - 6px) 100%, + 6px 100%, + 6px calc(100% - 2px), + 4px calc(100% - 2px), + 4px calc(100% - 4px), + 2px calc(100% - 4px), + 2px calc(100% - 6px), + 0 calc(100% - 6px) + ); } diff --git a/public/typography.css b/public/typography.css index a771557bd..9b14fb025 100644 --- a/public/typography.css +++ b/public/typography.css @@ -91,7 +91,8 @@ html { * otherwise Safari breaks. */ font-size: 16px; font-weight: var(--font-weight-regular); - line-height: 1.5; + /* On Safari this aligns text with different font-faces properly vertically. */ + line-height: 22px; } p { diff --git a/src/components/Header.svelte b/src/components/Header.svelte index 5e5200c74..9acb16062 100644 --- a/src/components/Header.svelte +++ b/src/components/Header.svelte @@ -31,24 +31,7 @@ z-index: -1; background-color: var(--color-background-float); - clip-path: polygon( - 0 0, - 100% 0, - 100% calc(100% - 6px), - calc(100% - 2px) calc(100% - 6px), - calc(100% - 2px) calc(100% - 4px), - calc(100% - 4px) calc(100% - 4px), - calc(100% - 4px) calc(100% - 2px), - calc(100% - 6px) calc(100% - 2px), - calc(100% - 6px) 100%, - 6px 100%, - 6px calc(100% - 2px), - 4px calc(100% - 2px), - 4px calc(100% - 4px), - 2px calc(100% - 4px), - 2px calc(100% - 6px), - 0 calc(100% - 6px) - ); + clip-path: var(--3px-bottom-corner-fill); } .breadcrumbs { gap: 0.5rem; diff --git a/src/components/IssueTeaser.svelte b/src/components/IssueTeaser.svelte new file mode 100644 index 000000000..2f3c387b5 --- /dev/null +++ b/src/components/IssueTeaser.svelte @@ -0,0 +1,78 @@ + + + + +
diff --git a/src/components/NodeId.svelte b/src/components/NodeId.svelte index a801af913..6ce1fb357 100644 --- a/src/components/NodeId.svelte +++ b/src/components/NodeId.svelte @@ -15,7 +15,6 @@ display: flex; align-items: center; gap: 0.375rem; - height: 1rem; font-weight: var(--font-weight-semibold); } .no-alias { diff --git a/src/components/PatchTeaser.svelte b/src/components/PatchTeaser.svelte new file mode 100644 index 000000000..84e8a4c7e --- /dev/null +++ b/src/components/PatchTeaser.svelte @@ -0,0 +1,83 @@ + + + + + diff --git a/src/views/repo/Issues.svelte b/src/views/repo/Issues.svelte index 37b774d78..2343ef536 100644 --- a/src/views/repo/Issues.svelte +++ b/src/views/repo/Issues.svelte @@ -4,11 +4,10 @@ import type { IssueStatus } from "./router"; import type { RepoInfo } from "@bindings/RepoInfo"; - import { formatOid } from "@app/lib/utils"; - import Layout from "./Layout.svelte"; import Icon from "@app/components/Icon.svelte"; + import IssueTeaser from "@app/components/IssueTeaser.svelte"; import Link from "@app/components/Link.svelte"; import NodeId from "@app/components/NodeId.svelte"; @@ -17,14 +16,6 @@ export let config: Config; export let status: IssueStatus; - const statusColor: Record