Make peer and branch selectors bigger

This commit is contained in:
dnlklmn
2024-01-15 18:28:22 +00:00
committed by Rūdolfs Ošiņš
parent 68cff4625d
commit 0d82d53289
4 changed files with 16 additions and 11 deletions
@@ -10,13 +10,13 @@
display: flex;
align-items: center;
flex-direction: row;
gap: 0.5rem;
padding: 0.5rem;
gap: 0.375rem;
padding: 1.25rem 0.625rem;
white-space: nowrap;
border-radius: var(--border-radius-tiny);
font-size: var(--font-size-small);
font-weight: var(--font-weight-semibold);
color: var(--color-foreground-dim);
font-weight: var(--font-weight-regular);
color: var(--color-foreground-contrast);
height: 2rem;
}
.item.disabled {
@@ -27,6 +27,7 @@
background-color: var(--color-fill-ghost);
}
.selected {
font-weight: var(--font-weight-semibold);
color: var(--color-foreground-contrast);
background-color: var(--color-fill-ghost);
}
+1 -1
View File
@@ -15,7 +15,7 @@
display: flex;
align-items: center;
justify-content: center;
gap: 0.25rem;
gap: 0.375rem;
height: 1rem;
font-family: var(--font-family-monospace);
font-weight: var(--font-weight-semibold);
@@ -43,9 +43,10 @@
stylePopoverPositionLeft="0"
stylePopoverPositionTop="0.5rem">
<Button
size="large"
ariaLabel="canonical-branch"
variant="gray-white"
styleBorderRadius="var(--border-radius-tiny) 0 0 var(--border-radius-tiny)"
styleBorderRadius="var(--border-radius-small) 0 0 var(--border-radius-small)"
slot="toggle"
disabled
notAllowed={false}>
@@ -63,15 +64,16 @@
{:else}
<Popover
popoverPadding="0"
popoverPositionTop="2.5rem"
popoverPositionTop="3rem"
popoverBorderRadius="var(--border-radius-small)">
<Button
size="large"
variant="gray-white"
let:expanded
let:toggle
on:click={toggle}
slot="toggle"
styleBorderRadius="var(--border-radius-tiny) 0 0 var(--border-radius-tiny)"
styleBorderRadius="var(--border-radius-small) 0 0 var(--border-radius-small)"
title="Change branch">
<IconSmall name="branch" />
<div class="identifier">{selectedBranch}</div>
@@ -97,11 +99,12 @@
{/if}
<Button
size="large"
title="Current HEAD"
variant="not-selected"
styleBorderRadius={selectedBranch
? "0 var(--border-radius-tiny) var(--border-radius-tiny) 0"
: "var(--border-radius-tiny)"}>
? "0 var(--border-radius-small) var(--border-radius-small) 0"
: "var(--border-radius-small)"}>
<Link
route={{
resource: "project.commit",
@@ -38,9 +38,10 @@
<Popover
popoverPadding="0"
popoverPositionTop="2.5rem"
popoverPositionTop="3rem"
popoverBorderRadius="var(--border-radius-small)">
<Button
size="large"
slot="toggle"
let:expanded
let:toggle