fix: hide horizontal scrollbar on textarea for Windows compatibility
Add overflow-x: hidden and word-break styles to textarea to prevent ugly horizontal scrollbar on Windows. Also hide the horizontal webkit scrollbar track entirely.
This commit is contained in:
@@ -25,9 +25,14 @@
|
||||
background: #71717a;
|
||||
}
|
||||
|
||||
/* Textarea-specific: even thinner scrollbar */
|
||||
/* Textarea-specific: even thinner scrollbar, no horizontal scroll */
|
||||
textarea::-webkit-scrollbar {
|
||||
width: 4px;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
textarea::-webkit-scrollbar:horizontal {
|
||||
display: none;
|
||||
}
|
||||
|
||||
textarea::-webkit-scrollbar-thumb {
|
||||
@@ -39,6 +44,12 @@ textarea::-webkit-scrollbar-thumb:hover {
|
||||
background: #52525b;
|
||||
}
|
||||
|
||||
textarea {
|
||||
overflow-x: hidden;
|
||||
overflow-wrap: break-word;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
html, body {
|
||||
margin: 0;
|
||||
background: #1e1e24;
|
||||
|
||||
Reference in New Issue
Block a user