Skip to content

Commit 2f060ae

Browse files
authored
fix(examples): fix resize handle alignment and thread border gap in RTL (#3091)
### 🎯 Goal Fix the "double vertical line" visual artifact on the resize handle in RTL layouts. ### 🛠 Implementation details - **Resize handle hitbox**: replaced `translateX(-50%)` centering with `inset-inline-start: -6px` so the hitbox aligns correctly over the 1px handle in both LTR and RTL - **Thread border**: set `--str-chat__thread-border-inline-start: none` on the thread container when preceded by the resize handle, preventing a double-line artifact where the handle's line and the thread's own border both render ### 🎨 UI Changes In RTL, the resize handle and thread panel border now appear as a single clean line instead of two separated lines.
1 parent a4b1c26 commit 2f060ae

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

examples/vite/src/index.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ body {
122122
.app-chat-resize-handle__hitbox {
123123
position: absolute;
124124
inset-block: 0;
125-
inset-inline-start: 50%;
126-
transform: translateX(-50%);
125+
inset-inline-start: -6px;
127126
width: 12px;
128127
display: flex;
129128
justify-content: center;
@@ -438,6 +437,11 @@ body {
438437
max-width: none;
439438
}
440439

440+
/* Hide thread's own start border when resize handle provides the separator */
441+
.app-chat-resize-handle--thread + .app-chat-thread-panel .str-chat__thread-container {
442+
--str-chat__thread-border-inline-start: none;
443+
}
444+
441445
/* If space gets tight while sidebar + thread are both open,
442446
prioritize the thread and collapse the main panel. */
443447
@container (max-width: 1148px) {

0 commit comments

Comments
 (0)