Make all elements of title row same height

This is so that text areas and buttons align perfectly.
This commit is contained in:
Rūdolfs Ošiņš
2025-04-04 10:26:54 +02:00
parent 4fc03eda4e
commit f777284af2
21 changed files with 80 additions and 61 deletions
+1 -1
View File
@@ -158,7 +158,7 @@
justify-content: space-between;
padding-right: 1.5rem;
align-items: center;
min-height: 40px;
min-height: 2.5rem;
}
</style>
+2 -2
View File
@@ -102,7 +102,7 @@
justify-content: space-between;
padding-right: 1.5rem;
align-items: center;
min-height: 40px;
min-height: 2.5rem;
}
</style>
@@ -120,7 +120,7 @@
{notificationCount} />
{/snippet}
<div class="container">
<div class="global-flex" style:margin-bottom="0.5rem">
<div class="global-flex" style:margin-bottom="1rem">
<div class="header">Repositories</div>
{#if repos.length > 0}
<div class="global-flex" style:margin-left="auto">
+5 -1
View File
@@ -85,7 +85,11 @@
font-weight: var(--font-weight-medium);
-webkit-user-select: text;
user-select: text;
margin-top: 0.35rem;
display: flex;
align-items: center;
justify-content: space-between;
word-break: break-word;
min-height: 2.5rem;
margin-bottom: 1rem;
}
.content {
+4 -4
View File
@@ -292,13 +292,13 @@
align-items: center;
justify-content: space-between;
word-break: break-word;
min-height: 40px;
min-height: 2.5rem;
}
.status {
padding: 0;
margin-right: 0.75rem;
height: 2rem;
width: 2rem;
height: 2.5rem;
width: 2.5rem;
}
.issue-body {
margin: 1rem 0;
@@ -368,7 +368,7 @@
{/snippet}
<div class="content">
<div style:margin-bottom="0.5rem">
<div style:margin-bottom="1rem">
{#if editingTitle}
<div class="title">
<div
+4 -3
View File
@@ -72,8 +72,8 @@
font-size: var(--font-size-medium);
display: flex;
align-items: center;
min-height: 40px;
margin-bottom: 0.5rem;
min-height: 2.5rem;
margin-bottom: 1rem;
}
</style>
@@ -96,7 +96,7 @@
<div class="container">
<div class="header">
<div>Issues</div>
<div class="global-flex" style:margin-left="auto">
<div class="global-flex" style:margin-left="auto" style:gap="0.75rem">
{#if issues.length > 0}
<TextInput
onSubmit={async () => {
@@ -126,6 +126,7 @@
{/if}
<div class="txt-regular txt-semibold">
<Button
styleHeight="2.5rem"
variant="secondary"
onclick={() => {
void router.push({
+11 -10
View File
@@ -311,7 +311,7 @@
align-items: center;
justify-content: space-between;
word-break: break-word;
min-height: 40px;
min-height: 2.5rem;
}
.title-icons {
display: flex;
@@ -322,11 +322,11 @@
.status {
padding: 0;
margin-right: 0.75rem;
height: 2rem;
width: 2rem;
height: 2.5rem;
width: 2.5rem;
}
.patch-list {
margin-top: 0.5rem;
margin-top: 1rem;
display: flex;
flex-direction: column;
gap: 2px;
@@ -389,7 +389,7 @@
{/snippet}
{#snippet secondColumn()}
<div class="txt-regular txt-semibold global-flex" style:min-height="40px">
<div class="txt-regular txt-semibold global-flex" style:min-height="2.5rem">
<div class="global-flex" style:gap="4px">
{project.data.name}
<Icon name="chevron-right" />
@@ -405,9 +405,9 @@
</div>
<div style:margin-left="auto">
<NakedButton
styleHeight="2.5rem"
keyShortcuts="ctrl+f"
variant="ghost"
stylePadding="0 4px"
active={showFilters}
onclick={() => {
if (showFilters) {
@@ -423,9 +423,9 @@
</div>
{#if showFilters}
<div class="global-flex" style:margin="1rem 0">
<Popover popoverPositionLeft="0" popoverPositionTop="2.5rem">
<Popover popoverPositionLeft="0" popoverPositionTop="3rem">
{#snippet toggle(onclick)}
<OutlineButton variant="ghost" {onclick}>
<OutlineButton variant="ghost" {onclick} styleHeight="2.5rem">
{@render icons(status)}
{status ? capitalize(status) : "All"}
{@render counters(status)}
@@ -445,7 +445,8 @@
] as const}>
{#snippet item(state)}
<DropdownListItem
style="gap: 0.5rem"
styleGap="0.5rem"
styleMinHeight="2.5rem"
selected={status === state}
onclick={async () => {
await loadPatches(state);
@@ -553,7 +554,7 @@
}} />
{:else}
<div class="content">
<div style:margin-bottom="0.5rem">
<div style:margin-bottom="1rem">
{#if editingTitle}
<div class="title">
<div
+2 -2
View File
@@ -104,8 +104,8 @@
font-size: var(--font-size-medium);
display: flex;
align-items: center;
min-height: 40px;
margin-bottom: 0.5rem;
min-height: 2.5rem;
margin-bottom: 1rem;
}
</style>