From e31cee245a4764e13843b2b4a4d0c7296e444b42 Mon Sep 17 00:00:00 2001 From: PavelLaptev Date: Tue, 28 Nov 2023 13:42:03 +0100 Subject: [PATCH] Css fixes --- .../components/FileCardHeader.svelte | 14 ++-- .../routes/[projectId]/components/Tag.svelte | 28 +++++-- .../navigation/SectionHeader.svelte | 2 +- .../stashed/[branchId]/+page.svelte | 73 +++++++++---------- packages/ui/src/styles/tokens.css | 2 +- 5 files changed, 63 insertions(+), 56 deletions(-) diff --git a/packages/ui/src/routes/[projectId]/components/FileCardHeader.svelte b/packages/ui/src/routes/[projectId]/components/FileCardHeader.svelte index 0175f2d42..202741927 100644 --- a/packages/ui/src/routes/[projectId]/components/FileCardHeader.svelte +++ b/packages/ui/src/routes/[projectId]/components/FileCardHeader.svelte @@ -42,7 +42,7 @@ {@html boldenFilename(file.path)}
-
+
{#if isFileLocked} Locked {/if} -
-
{#if file.conflicted} Has conflicts {/if} +
+
{#if fileStats.added} +{fileStats.added} {/if} @@ -93,10 +93,10 @@ .header__tags { display: flex; gap: var(--space-6); - & > div { - display: flex; - gap: var(--space-2); - } + } + .header__tag-group { + display: flex; + gap: var(--space-2); } .header__filename { color: var(--clr-theme-scale-ntrl-50); diff --git a/packages/ui/src/routes/[projectId]/components/Tag.svelte b/packages/ui/src/routes/[projectId]/components/Tag.svelte index 735bdefb8..49a212334 100644 --- a/packages/ui/src/routes/[projectId]/components/Tag.svelte +++ b/packages/ui/src/routes/[projectId]/components/Tag.svelte @@ -10,6 +10,7 @@ export let color: TagColor; export let border = false; export let filled = false; + export let onClick: (() => void) | undefined = undefined;
-
+ -
-
- {#if icon} + + {#if icon} +
- {/if} -
+
+ {/if}
diff --git a/packages/ui/src/routes/[projectId]/navigation/SectionHeader.svelte b/packages/ui/src/routes/[projectId]/navigation/SectionHeader.svelte index 717ef3c7f..010abb539 100644 --- a/packages/ui/src/routes/[projectId]/navigation/SectionHeader.svelte +++ b/packages/ui/src/routes/[projectId]/navigation/SectionHeader.svelte @@ -14,7 +14,6 @@ }} disabled={count && count > 0 ? false : true} class="header border-t font-bold" - style:border-color="var(--border-surface)" class:border-b={scrolled} >
@@ -37,6 +36,7 @@ width: 100%; padding: var(--space-16) var(--space-12); gap: var(--space-8); + border-top: 1px solid var(--clr-theme-container-outline-light); } .header:hover, .header:focus { diff --git a/packages/ui/src/routes/[projectId]/stashed/[branchId]/+page.svelte b/packages/ui/src/routes/[projectId]/stashed/[branchId]/+page.svelte index fab7ed00c..b75997ad1 100644 --- a/packages/ui/src/routes/[projectId]/stashed/[branchId]/+page.svelte +++ b/packages/ui/src/routes/[projectId]/stashed/[branchId]/+page.svelte @@ -37,51 +37,44 @@ } -
+
{#if $error$}

Error...

{:else if !$branches$}

Loading...

{:else if branch} -
- - deleteBranchModal.show(branch)} - /> - {#await branch.isMergeable then isMergeable} - {#if isMergeable} - -
- Conflicts with Applied Branches -
-
- {/if} - {/await} -
-
- -
+ + deleteBranchModal.show(branch)} + /> + {#await branch.isMergeable then isMergeable} + {#if isMergeable} + +
+ Conflicts with Applied Branches +
+
+ {/if} + {/await} + {:else}

Branch no longer exists

{/if} diff --git a/packages/ui/src/styles/tokens.css b/packages/ui/src/styles/tokens.css index d1da58637..7050aaf9c 100644 --- a/packages/ui/src/styles/tokens.css +++ b/packages/ui/src/styles/tokens.css @@ -320,7 +320,7 @@ --clr-theme-scale-warn-90: var(--clr-core-warn-10); --clr-theme-succ-container: var(--clr-core-succ-15); --clr-theme-succ-container-dark: var(--clr-core-succ-5); - --clr-theme-succ-conteiner-dim: var(--clr-core-succ-10); + --clr-theme-succ-container-dim: var(--clr-core-succ-10); --clr-theme-succ-element: var(--clr-core-succ-50); --clr-theme-succ-element-dark: var(--clr-core-succ-35); --clr-theme-succ-element-dim: var(--clr-core-succ-40);