fix(ui): hide keyboard hints on phone layout
This commit is contained in:
@@ -119,11 +119,13 @@ const SessionSidebar: Component<SessionSidebarProps> = (props) => (
|
|||||||
</Show>
|
</Show>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="session-sidebar-shortcuts">
|
<Show when={!props.isPhoneLayout()}>
|
||||||
<Show when={props.keyboardShortcuts().length}>
|
<div class="session-sidebar-shortcuts">
|
||||||
<KeyboardHint shortcuts={props.keyboardShortcuts()} separator=" " showDescription={false} />
|
<Show when={props.keyboardShortcuts().length}>
|
||||||
</Show>
|
<KeyboardHint shortcuts={props.keyboardShortcuts()} separator=" " showDescription={false} />
|
||||||
</div>
|
</Show>
|
||||||
|
</div>
|
||||||
|
</Show>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="session-sidebar flex flex-col flex-1 min-h-0">
|
<div class="session-sidebar flex flex-col flex-1 min-h-0">
|
||||||
@@ -166,11 +168,13 @@ const SessionSidebar: Component<SessionSidebarProps> = (props) => (
|
|||||||
|
|
||||||
<ThinkingSelector instanceId={props.instanceId} currentModel={activeSession().model} />
|
<ThinkingSelector instanceId={props.instanceId} currentModel={activeSession().model} />
|
||||||
|
|
||||||
<div class="session-sidebar-selector-hints" aria-hidden="true">
|
<Show when={!props.isPhoneLayout()}>
|
||||||
<Kbd shortcut="cmd+shift+a" />
|
<div class="session-sidebar-selector-hints" aria-hidden="true">
|
||||||
<Kbd shortcut="cmd+shift+m" />
|
<Kbd shortcut="cmd+shift+a" />
|
||||||
<Kbd shortcut="cmd+shift+t" />
|
<Kbd shortcut="cmd+shift+m" />
|
||||||
</div>
|
<Kbd shortcut="cmd+shift+t" />
|
||||||
|
</div>
|
||||||
|
</Show>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user