diff --git a/public/index.css b/public/index.css index 43dce1c..914975f 100644 --- a/public/index.css +++ b/public/index.css @@ -62,6 +62,7 @@ body { padding: 0 0.5rem; min-width: 1.5rem; font-weight: var(--font-weight-regular); + flex-shrink: 0; } :root { diff --git a/src/components/Button.svelte b/src/components/Button.svelte index 050eb18..07472a8 100644 --- a/src/components/Button.svelte +++ b/src/components/Button.svelte @@ -38,6 +38,7 @@ -webkit-user-select: none; user-select: none; + height: 2rem; column-gap: 0; row-gap: 0; display: grid; @@ -301,7 +302,7 @@ .p3-3 { grid-area: p3-3; background-color: var(--button-color-1); - padding: 2px 8px; + padding: 0 8px; display: flex; align-items: center; gap: 0.5rem; diff --git a/src/components/DropdownListItem.svelte b/src/components/DropdownListItem.svelte index 895683e..dd8d6ee 100644 --- a/src/components/DropdownListItem.svelte +++ b/src/components/DropdownListItem.svelte @@ -26,8 +26,8 @@ display: flex; align-items: center; flex-direction: row; - gap: 0.375rem; - padding: 0.5rem 0.375rem; + min-height: 2rem; + padding: 0 0.5rem; white-space: nowrap; font-size: var(--font-size-small); font-weight: var(--font-weight-regular); diff --git a/src/components/Icon.svelte b/src/components/Icon.svelte index 24b1e61..9c25b75 100644 --- a/src/components/Icon.svelte +++ b/src/components/Icon.svelte @@ -32,6 +32,7 @@ | "markdown" | "moon" | "more-vertical" + | "none" | "offline" | "online" | "patch" @@ -442,6 +443,38 @@ + {:else if name === "none"} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {:else if name === "offline"} diff --git a/src/components/IssueSecondColumn.svelte b/src/components/IssueSecondColumn.svelte index 3e6bcdc..3d18ae1 100644 --- a/src/components/IssueSecondColumn.svelte +++ b/src/components/IssueSecondColumn.svelte @@ -25,6 +25,12 @@ -
+
{title} diff --git a/src/components/IssueStateButton.svelte b/src/components/IssueStateButton.svelte index 2eb159a..6235422 100644 --- a/src/components/IssueStateButton.svelte +++ b/src/components/IssueStateButton.svelte @@ -57,13 +57,11 @@ {#snippet toggle(onclick)} {/snippet} {#snippet popover()} diff --git a/src/components/IssuesSecondColumn.svelte b/src/components/IssuesSecondColumn.svelte index 49a47dc..4227c8c 100644 --- a/src/components/IssuesSecondColumn.svelte +++ b/src/components/IssuesSecondColumn.svelte @@ -24,7 +24,6 @@ flex-direction: column; height: 100%; justify-content: space-between; - padding-bottom: 1rem; } .tab { align-items: center; @@ -59,7 +58,9 @@
- +
+ +
- +
+ +
.teaser { align-items: center; - height: 34px; - margin: 0 4px 1rem 12px; + min-height: 40px; } .seeding { diff --git a/src/components/Sidebar.svelte b/src/components/Sidebar.svelte index f6bce7c..2745c59 100644 --- a/src/components/Sidebar.svelte +++ b/src/components/Sidebar.svelte @@ -44,7 +44,7 @@
-
+
{#if activeTab.type === "issues"} diff --git a/src/views/repo/Issue.svelte b/src/views/repo/Issue.svelte index 8f67502..0933157 100644 --- a/src/views/repo/Issue.svelte +++ b/src/views/repo/Issue.svelte @@ -14,7 +14,12 @@ import * as roles from "@app/lib/roles"; import { invoke } from "@app/lib/invoke"; import { nodeRunning } from "@app/lib/events"; - import { publicKeyFromDid, scrollIntoView } from "@app/lib/utils"; + import { + issueStatusBackgroundColor, + issueStatusColor, + publicKeyFromDid, + scrollIntoView, + } from "@app/lib/utils"; import { announce } from "@app/components/AnnounceSwitch.svelte"; @@ -310,7 +315,13 @@ align-items: center; justify-content: space-between; word-break: break-all; - padding-top: 4px; + min-height: 40px; + } + .status { + padding: 0; + margin-right: 0.75rem; + height: 2rem; + width: 2rem; } .issue-body { margin-top: 1rem; @@ -342,7 +353,6 @@ gap: 1rem; margin-left: 1rem; align-items: center; - height: 40px; } .metadata-divider { width: 2px; @@ -384,9 +394,17 @@ {/snippet}
-
+
{#if editingTitle}
+
+ +
0} bind:value={updatedTitle} @@ -419,7 +437,17 @@
{:else}
- +
+
+ +
+ +
{#if roles.isDelegateOrAuthor( config.publicKey, repo.delegates.map(delegate => delegate.did), issue.body.author.did, )}
(editingTitle = !editingTitle)} /> diff --git a/src/views/repo/Issues.svelte b/src/views/repo/Issues.svelte index fa386b4..0629c14 100644 --- a/src/views/repo/Issues.svelte +++ b/src/views/repo/Issues.svelte @@ -14,6 +14,7 @@ import IssueTeaser from "@app/components/IssueTeaser.svelte"; import IssuesSecondColumn from "@app/components/IssuesSecondColumn.svelte"; import Sidebar from "@app/components/Sidebar.svelte"; + import Border from "@app/components/Border.svelte"; interface Props { repo: RepoInfo; @@ -28,19 +29,22 @@ @@ -57,41 +61,52 @@ {/snippet} {#snippet secondColumn()} -
- -
+ {/snippet} -
-
Issues
-
- +
+
+
Issues
+
+ +
-
-
- {#each issues as issue} - - {/each} +
+ {#each issues as issue} + + {/each} - {#if issues.length === 0} -
- {#if status === "all"} - No issues. - {:else} - No {status} issues. - {/if} -
- {/if} + {#if issues.length === 0} + +
+
+ + {#if status === "all"} + No issues. + {:else} + No {status} issues. + {/if} +
+
+
+ {/if} +
diff --git a/src/views/repo/Layout.svelte b/src/views/repo/Layout.svelte index 9f972a3..05f998a 100644 --- a/src/views/repo/Layout.svelte +++ b/src/views/repo/Layout.svelte @@ -108,22 +108,18 @@ .sidebar { grid-column: 1 / 2; - width: 40px; - margin: 0 1rem; + padding: 1rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; - margin-top: 13px; - margin-bottom: 1rem; } .secondColumn { grid-column: 2 / 3; - margin: 1rem 0 0 0; max-width: 28rem; min-width: 14rem; - margin-right: 1rem; + padding: 1rem 1rem 1rem 0; } .content { @@ -139,12 +135,16 @@
-