Skip to content

Commit f280160

Browse files
committed
feat(ai): styles and strings for the pile's read-files line
1 parent 07060d1 commit f280160

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

‎src/nls/root/strings.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2684,6 +2684,8 @@ define({
26842684
"AI_CHAT_TOOL_RAN_CMD": "Ran command",
26852685
"AI_CHAT_TOOL_GROUP_STEPS": "{0} steps",
26862686
"AI_CHAT_TOOL_GROUP_FAILED": "{0} failed",
2687+
"AI_CHAT_TOOL_GROUP_READ_FILES": "Read {0}",
2688+
"AI_CHAT_TOOL_GROUP_MORE": "+{0} more",
26872689
"AI_CHAT_TOOL_FAILED_TAG": "failed",
26882690
"AI_CHAT_TOOL_DETAIL_TRUNCATED": "Truncated: only the first {0} characters were kept in the chat history",
26892691
"AI_CHAT_TOOL_SKILL_NAME": "Skill: {0}",

‎src/styles/Extn-AIChatPanel.less‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,6 +1565,7 @@
15651565
position: relative;
15661566
z-index: 2;
15671567
display: flex;
1568+
flex-wrap: wrap; // the read-files abstract wraps onto its own line
15681569
align-items: center;
15691570
gap: 6px;
15701571
padding: 6px 10px;
@@ -1664,6 +1665,38 @@
16641665
border-left: 1px solid rgba(255, 255, 255, 0.06);
16651666
}
16661667

1668+
// Second header line: the Read icon then "a.html, b.css +3 more", most
1669+
// recent first. Hidden while the pile is expanded since the cards show.
1670+
.ai-tool-group-summary {
1671+
display: flex;
1672+
align-items: center;
1673+
gap: 6px;
1674+
flex-basis: 100%;
1675+
margin-top: -2px;
1676+
padding-left: 20px; // under the label, past the chevron column
1677+
font-size: @ai-text-meta;
1678+
color: @project-panel-text-2;
1679+
opacity: 0.7;
1680+
min-width: 0;
1681+
1682+
.ai-tool-group-summary-icon {
1683+
width: 14px;
1684+
text-align: center;
1685+
flex-shrink: 0;
1686+
}
1687+
1688+
.ai-tool-group-summary-text {
1689+
white-space: nowrap;
1690+
overflow: hidden;
1691+
text-overflow: ellipsis;
1692+
min-width: 0;
1693+
}
1694+
}
1695+
1696+
&.ai-tool-group-expanded .ai-tool-group-summary {
1697+
display: none;
1698+
}
1699+
16671700
// Label bump when a card lands in the pile.
16681701
.ai-tool-group-label.ai-tool-group-label-bump {
16691702
animation: ai-tool-group-label-bump 0.3s ease-out;

0 commit comments

Comments
 (0)