Skip to content

Commit 95363a5

Browse files
authored
fix(theme-default): fix site name text overflow style (#1260)
1 parent fd2e241 commit 95363a5

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

ecosystem/theme-default/src/client/styles/navbar.scss

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,20 @@
4343
.navbar {
4444
padding-left: 4rem;
4545

46-
.can-hide {
47-
display: none;
48-
}
49-
5046
.site-name {
51-
width: calc(100vw - 9.4rem);
47+
display: block;
48+
// 5.5rem for .navbar padding-inline
49+
// 4.5rem for ColorModeSwitch and NavbarSearch
50+
// 1rem for gap
51+
width: calc(100vw - 11rem);
5252
overflow: hidden;
5353
white-space: nowrap;
5454
text-overflow: ellipsis;
5555
}
56+
57+
.can-hide {
58+
display: none;
59+
}
5660
}
5761
}
5862

0 commit comments

Comments
 (0)