Skip to content

Commit 40a39bd

Browse files
committed
[frontend] fix some jank with the input box
1 parent 870d5a1 commit 40a39bd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

frontend/src/components/Omnibox.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,12 @@ export const UrlInput: Component<
152152
this.value = this.tabUrl.href;
153153
this.input.focus();
154154
this.input.select();
155+
156+
this.input.scrollLeft = 0;
155157
};
156158

157159
this.selectContent.listen(() => {
158-
this.active = true;
159160
activate();
160-
161-
this.input.select();
162161
});
163162

164163
return (
@@ -342,6 +341,9 @@ UrlInput.style = css`
342341
343342
height: 100%;
344343
width: 100%;
344+
345+
text-wrap: nowrap;
346+
overflow: hidden;
345347
}
346348
.inactiveurl {
347349
display: flex;

0 commit comments

Comments
 (0)