mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
fix(vscode): improve history context menu sizing
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"kilo-code": patch
|
||||
---
|
||||
|
||||
Improve the size and readability of the local History session context menu.
|
||||
@@ -115,7 +115,7 @@ const SessionList: Component<SessionListProps> = (props) => {
|
||||
{node}
|
||||
</ContextMenu.Trigger>
|
||||
<ContextMenu.Portal>
|
||||
<ContextMenu.Content>
|
||||
<ContextMenu.Content class="session-list-menu">
|
||||
<ContextMenu.Item onSelect={() => startRename(item)}>
|
||||
<ContextMenu.ItemLabel>{language.t("common.rename")}</ContextMenu.ItemLabel>
|
||||
</ContextMenu.Item>
|
||||
|
||||
@@ -61,6 +61,28 @@ body.vscode-light
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.session-list-menu {
|
||||
min-width: 180px;
|
||||
border: 1px solid color-mix(in oklch, var(--border-base) 50%, transparent) !important;
|
||||
box-shadow: var(--shadow-md) !important;
|
||||
|
||||
[data-slot="context-menu-item"] {
|
||||
padding: 6px 10px;
|
||||
font-size: var(--font-size-small);
|
||||
line-height: var(--line-height-large);
|
||||
transition: none;
|
||||
|
||||
&:hover,
|
||||
&[data-highlighted] {
|
||||
background: var(--surface-raised-base-hover);
|
||||
}
|
||||
}
|
||||
|
||||
[data-slot="context-menu-separator"] {
|
||||
margin: 4px 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* History View (unified Local + Cloud tabs) */
|
||||
.history-view {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user