Skip to content

Commit 07060d1

Browse files
committed
feat(ai): scroll-to-bottom button styles, pile label without count pill
1 parent 07c96dc commit 07060d1

2 files changed

Lines changed: 36 additions & 23 deletions

File tree

‎src/nls/root/strings.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2602,6 +2602,7 @@ define({
26022602
"AI_CHAT_NEW_SESSION_TITLE": "Start a new conversation",
26032603
"AI_CHAT_NEW_BTN": "New",
26042604
"AI_CHAT_THINKING": "Thinking...",
2605+
"AI_CHAT_SCROLL_TO_BOTTOM": "Scroll to bottom",
26052606
"AI_CHAT_PLACEHOLDER": "Ask Claude...",
26062607
"AI_CHAT_PLACEHOLDER_MODEL": "Ask {0}...",
26072608
"AI_CHAT_SEND_TITLE": "Send message",

‎src/styles/Extn-AIChatPanel.less‎

Lines changed: 35 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
}
6363

6464
.ai-chat-panel {
65+
position: relative; // anchors .ai-scroll-to-bottom-btn
6566
display: flex;
6667
flex-direction: column;
6768
-webkit-box-flex: 1;
@@ -873,6 +874,34 @@
873874
background-color: @bc-ai-sidebar-bg;
874875
}
875876

877+
// Floating "scroll to bottom" control over the lower right of the message
878+
// list; shown by AIChatPanel._updateScrollToBottomBtn while the list is
879+
// scrolled away from its end (top is set from the list's bottom edge).
880+
.ai-scroll-to-bottom-btn {
881+
position: absolute;
882+
right: 18px;
883+
z-index: 5;
884+
width: 30px;
885+
height: 30px;
886+
border-radius: 50%;
887+
border: 1px solid rgba(255, 255, 255, 0.12);
888+
background-color: #3a3a3a;
889+
color: @project-panel-text-1;
890+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
891+
cursor: pointer;
892+
display: flex;
893+
align-items: center;
894+
justify-content: center;
895+
padding: 0;
896+
font-size: @ai-text-secondary;
897+
opacity: 0.9;
898+
899+
&:hover {
900+
opacity: 1;
901+
background-color: #454545;
902+
}
903+
}
904+
876905
/* ── Individual messages ────────────────────────────────────────────── */
877906
.ai-msg {
878907
margin-bottom: 16px;
@@ -1626,24 +1655,6 @@
16261655
color: #e57373;
16271656
opacity: 0.9;
16281657
white-space: nowrap;
1629-
1630-
& + .ai-tool-group-count {
1631-
margin-left: 0;
1632-
}
1633-
}
1634-
1635-
// Count pill at the right edge of the header: the number of collated
1636-
// cards is the one fact the collapsed pile must convey.
1637-
.ai-tool-group-count {
1638-
margin-left: auto;
1639-
flex-shrink: 0;
1640-
font-size: @ai-text-meta;
1641-
line-height: 1;
1642-
padding: 3px 7px;
1643-
border-radius: 9px;
1644-
color: @project-panel-text-1;
1645-
background-color: rgba(255, 255, 255, 0.08);
1646-
border: 1px solid rgba(255, 255, 255, 0.06);
16471658
}
16481659

16491660
.ai-tool-group-body {
@@ -1653,9 +1664,10 @@
16531664
border-left: 1px solid rgba(255, 255, 255, 0.06);
16541665
}
16551666

1656-
// Count pill bump when a card lands in the pile.
1657-
.ai-tool-group-count.ai-tool-group-count-bump {
1658-
animation: ai-tool-group-count-bump 0.3s ease-out;
1667+
// Label bump when a card lands in the pile.
1668+
.ai-tool-group-label.ai-tool-group-label-bump {
1669+
animation: ai-tool-group-label-bump 0.3s ease-out;
1670+
transform-origin: left center;
16591671
}
16601672

16611673
&.ai-tool-group-expanded {
@@ -1676,9 +1688,9 @@
16761688
}
16771689
}
16781690

1679-
@keyframes ai-tool-group-count-bump {
1691+
@keyframes ai-tool-group-label-bump {
16801692
0% { transform: scale(1); }
1681-
40% { transform: scale(1.35); }
1693+
40% { transform: scale(1.12); }
16821694
100% { transform: scale(1); }
16831695
}
16841696

0 commit comments

Comments
 (0)