mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 18:20:30 +08:00
Make all elements of title row same height
This is so that text areas and buttons align perfectly.
This commit is contained in:
@@ -158,7 +158,7 @@
|
||||
justify-content: space-between;
|
||||
padding-right: 1.5rem;
|
||||
align-items: center;
|
||||
min-height: 40px;
|
||||
min-height: 2.5rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user