Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

itsmekori/eng-1078-input-scroll-bug-firefox #1076

Merged
merged 1 commit into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions web/src/components/SimpleTextInput/SimpleTextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const SimpleTextInput = ({

<div
className={clsx(
'flex w-full max-w-[260px] cursor-text overflow-x-scroll rounded-md border-2 border-solid px-4 py-2',
'no-scrollbar flex w-full max-w-[260px] cursor-text overflow-x-scroll rounded-md border-2 border-solid px-4 py-2',
inputTextLeft ? 'justify-start' : 'justify-center',
failedAttempt && !errorMessage
? 'border-red-400'
Expand All @@ -128,7 +128,7 @@ const SimpleTextInput = ({
<div className="relative">
<input
className={clsx(
'border-none bg-transparent p-0 font-mono tracking-[.8em] text-transparent caret-white focus:!border-none focus:!outline-none focus:ring-0'
'w-full border-none bg-transparent p-0 font-mono tracking-[.8em] text-transparent caret-white focus:!border-none focus:!outline-none focus:ring-0'
)}
type="text"
id="input"
Expand Down
6 changes: 6 additions & 0 deletions web/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@
height: 45px !important;
padding: 0;
}
.no-scrollbar {
scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
display: none;
}

.discordIcon:hover {
color: #5865f2;
Expand Down