Skip to content

Commit d66b0bf

Browse files
Independent Panel: make title shrink with ellipsis to keep util group visible\n\n- Wrap session name in .chat-list-title and apply min-width:0 + ellipsis\n- Ensure util group is non-flexible width; prevents delete icon being clipped\n\nWhy: Regression where long titles push or hide the delete icon despite no actual text increase; this restores expected flex constraints.
1 parent 8154ab6 commit d66b0bf

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

src/pages/IndependentPanel/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ function App() {
278278
}
279279
}}
280280
>
281-
{session.sessionName}
281+
<span className="chat-list-title">{session.sessionName}</span>
282282
<span
283283
className="gpt-util-group"
284284
onClick={(e) => {

src/pages/IndependentPanel/styles.scss

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,9 @@
7979
width: 60px;
8080
}
8181

82-
// Keep search visible even when collapsed (compact style)
82+
// Keep search visible even when collapsed (same vertical sizing)
8383
.chat-sidebar.collapsed .search-container {
8484
display: block;
85-
margin-top: 8px;
86-
}
87-
.chat-sidebar.collapsed .search-input {
88-
min-height: 28px;
89-
padding: 4px 6px;
90-
font-size: 12px;
9185
}
9286

9387
.chat-sidebar:hover,
@@ -171,6 +165,23 @@
171165
justify-content: space-between;
172166
}
173167

168+
// Ensure title shrinks and ellipsizes, keeping util group visible
169+
.chat-list-title {
170+
flex: 1 1 auto;
171+
min-width: 0;
172+
overflow: hidden;
173+
text-overflow: ellipsis;
174+
white-space: nowrap;
175+
margin-right: 8px;
176+
}
177+
178+
.gpt-util-group {
179+
display: flex;
180+
gap: 15px;
181+
align-items: center;
182+
flex: 0 0 auto;
183+
}
184+
174185
.normal-button {
175186
width: 100%;
176187
min-height: 40px;

0 commit comments

Comments
 (0)