fix(rtl): force scrollbar to right in RTL textarea, buttons at inline-end
Use direction:ltr on the textarea in RTL mode to keep scrollbar on the right (start side). Nav buttons remain at inset-inline-end (left/end in RTL). Swap padding so left gets 2.5rem (for buttons) and right 0.75rem (for scrollbar gap). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
committed by
Shantur Rathore
parent
658253a3fd
commit
be8fcc98c5
@@ -85,7 +85,7 @@
|
|||||||
.prompt-nav-buttons {
|
.prompt-nav-buttons {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0.25rem;
|
top: 0.25rem;
|
||||||
right: 0.25rem;
|
inset-inline-end: 0.25rem;
|
||||||
bottom: 0.25rem;
|
bottom: 0.25rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -160,6 +160,15 @@
|
|||||||
@apply opacity-60 cursor-not-allowed;
|
@apply opacity-60 cursor-not-allowed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* In RTL: force scrollbar to the right (start), buttons stay at inset-inline-end (left/end) */
|
||||||
|
[dir="rtl"] .prompt-input {
|
||||||
|
direction: ltr;
|
||||||
|
text-align: right;
|
||||||
|
unicode-bidi: plaintext;
|
||||||
|
padding-left: 2.5rem;
|
||||||
|
padding-right: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
.prompt-input::placeholder {
|
.prompt-input::placeholder {
|
||||||
color: var(--text-muted);
|
color: var(--text-muted);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user