fix: session delete button always visible, session name truncates properly
- Remove opacity:0/hover-reveal on session × — always shown in the panel - session-id: flex:1 + text-overflow:ellipsis prevents overflow pushing × offscreen - min-width on delete btn ensures tap target is always reachable Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -182,21 +182,25 @@
|
|||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
padding: 2px 4px;
|
padding: 2px 6px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
margin-left: 4px;
|
transition: color 0.15s;
|
||||||
opacity: 0;
|
min-width: 28px;
|
||||||
transition: opacity 0.15s, color 0.15s;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.session-item:hover .session-delete-btn { opacity: 1; }
|
|
||||||
.session-delete-btn:hover { color: #e06c75; }
|
.session-delete-btn:hover { color: #e06c75; }
|
||||||
|
|
||||||
.session-id {
|
.session-id {
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.session-meta {
|
.session-meta {
|
||||||
@@ -1061,7 +1065,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.session-delete-btn {
|
.session-delete-btn {
|
||||||
opacity: 1;
|
|
||||||
font-size: 1.3rem;
|
font-size: 1.3rem;
|
||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
min-width: 36px;
|
min-width: 36px;
|
||||||
|
|||||||
Reference in New Issue
Block a user