Skip to content

Commit f4d601f

Browse files
committed
fixup! feat: make thread elements have the same space around it
Signed-off-by: greta <[email protected]>
1 parent d9f283e commit f4d601f

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

src/components/Thread.vue

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -579,20 +579,27 @@ export default {
579579
position: -webkit-sticky; // ios/safari fallback
580580
position: sticky;
581581
top: 0;
582-
background: var(--color-main-background);
583-
background: var(--color-main-background);
584-
background: var(--color-main-background);
585-
background: var(--color-main-background);
586-
border-bottom: var(--border-width-input-focused) solid var(--color-border);
587582
margin-bottom: 5px;
588-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
583+
584+
&::before {
585+
content: '';
586+
position: absolute;
587+
top: 0;
588+
left: 50%;
589+
transform: translateX(-50%);
590+
width: 100vw;
591+
height: 100%;
592+
background: var(--color-main-background);
593+
border-bottom: var(--border-width-input-focused) solid var(--color-border);
594+
z-index: -1;
595+
}
589596
}
590597
591598
#mail-thread-header-fields {
592599
// initial width
593600
width: 0;
594601
// while scrolling, the back button overlaps with subject on small screen
595-
padding-inline-start: calc (var(--border-radius-container-large) + var ((--header-height)));
602+
padding-inline-start: calc(var(--border-radius-container-large) + var(--header-height));
596603
// grow and try to fill 100%
597604
flex: 1 1 auto;
598605
h2,

0 commit comments

Comments
 (0)