mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
fix(vscode): focus history session rename editor
This commit is contained in:
@@ -105,7 +105,11 @@ const SessionList: Component<SessionListProps> = (props) => {
|
||||
{node}
|
||||
</ContextMenu.Trigger>
|
||||
<ContextMenu.Portal>
|
||||
<ContextMenu.Content class="session-list-menu">
|
||||
<ContextMenu.Content
|
||||
onCloseAutoFocus={(event) => {
|
||||
if (renamingId() === item.id) event.preventDefault()
|
||||
}}
|
||||
>
|
||||
<ContextMenu.Item onSelect={() => startRename(item)}>
|
||||
<ContextMenu.ItemLabel>{language.t("common.rename")}</ContextMenu.ItemLabel>
|
||||
</ContextMenu.Item>
|
||||
|
||||
@@ -61,28 +61,6 @@ 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