Skip to content

Commit 5c98a8f

Browse files
committed
[frontend] fix weird scaling bug
1 parent 55610d7 commit 5c98a8f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

frontend/src/components/Shell.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ export const Shell: Component = function (cx) {
7777
Shell.style = css`
7878
:scope {
7979
flex: 1;
80+
overflow: hidden;
81+
width: 100%;
8082
}
8183
.unfocus {
8284
pointer-events: none;
@@ -104,6 +106,7 @@ Shell.style = css`
104106
105107
.mainframecontainer {
106108
display: flex;
109+
width: 100%;
107110
flex: 1;
108111
}
109112

frontend/src/pages/NewTabPage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ NewTabPage.style = css`
8282
align-items: center;
8383
}
8484
.title {
85-
width: 100%;
85+
width: 6em;
86+
overflow: hidden;
8687
text-overflow: ellipsis;
8788
text-align: center;
8889
white-space: nowrap;

0 commit comments

Comments
 (0)