Alignment fix

This commit is contained in:
dnlklmn
2024-03-27 22:29:25 +01:00
parent 4c8f64111b
commit d6f3d17805
3 changed files with 23 additions and 18 deletions
+1 -1
View File
@@ -97,7 +97,7 @@
align-items: center;
gap: 0.5rem;
padding-left: 2.25rem;
margin-left: -0.5rem;
margin-left: -0.375rem;
}
.timestamp {
font-size: var(--font-size-small);
+13 -8
View File
@@ -22,6 +22,7 @@
display: flex;
font-size: var(--font-size-small);
align-items: start;
padding: 0.125rem 0;
}
.message {
align-items: center;
@@ -32,13 +33,15 @@
.left {
display: flex;
gap: 0.5rem;
padding: 0 0.5rem;
flex-direction: column;
}
.right {
display: flex;
align-items: flex-start;
align-items: center;
gap: 1rem;
margin-left: auto;
margin-top: -0.25rem;
height: 21px;
}
.summary:hover {
text-decoration: underline;
@@ -64,11 +67,13 @@
</div>
</Link>
{#if commit.description}
<ExpandButton
variant="inline"
on:toggle={() => {
commitMessageVisible = !commitMessageVisible;
}} />
<div style="height: 21px; display: flex; align-items: center;">
<ExpandButton
variant="inline"
on:toggle={() => {
commitMessageVisible = !commitMessageVisible;
}} />
</div>
{/if}
</div>
{#if commitMessageVisible}
@@ -78,7 +83,7 @@
{/if}
</div>
<div class="right">
<div style="display: flex; gap: 0.5rem; height: 2rem; align-items: center;">
<div style="display: flex; gap: 0.5rem; height: 21px; align-items: center;">
<CompactCommitAuthorship {commit} />
<IconButton title="Browse repo at this commit">
<Link
+9 -9
View File
@@ -193,14 +193,14 @@
font-weight: var(--font-weight-medium);
}
.revision-data {
gap: 0.75rem;
gap: 0.5rem;
display: flex;
align-items: center;
margin-left: auto;
color: var(--color-foreground-dim);
}
.revision-description {
margin-left: 2rem;
margin-left: 2.75rem;
}
.author-metadata {
color: var(--color-fill-gray);
@@ -224,7 +224,7 @@
.authorship-header {
display: flex;
align-items: center;
padding: 0 0.75rem;
padding: 0 0.5rem;
height: 1.5rem;
gap: 0.5rem;
font-size: var(--font-size-small);
@@ -237,9 +237,8 @@
display: flex;
flex-direction: row;
align-items: center;
padding-left: 2rem;
padding-left: 2.5rem;
gap: 0.5rem;
margin-left: -0.5rem;
}
.commits {
position: relative;
@@ -251,12 +250,11 @@
padding: 1rem 0.5rem 1rem 1rem;
border-left: 1px solid var(--color-fill-separator);
}
.commit:last-of-type::after {
content: "";
position: absolute;
left: -18.5px;
top: 12px;
top: 14px;
bottom: -1rem;
border-left: 4px solid var(--color-background-default);
}
@@ -268,7 +266,7 @@
width: 4px;
height: 4px;
position: absolute;
top: 0.5rem;
top: 0.625rem;
left: -18.5px;
background-color: var(--color-fill-separator);
}
@@ -389,7 +387,9 @@
<div>
<div class="patch-header">
<div class="authorship-header">
<div style:color={badgeColor(patchState)}>
<div
style:color={badgeColor(patchState)}
style:padding="0 0.375rem">
<IconSmall name="patch" />
</div>
<NodeId