Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions apps/web/src/components/CodeViewerPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
import { useTheme } from "~/hooks/useTheme";
import { isElectron } from "~/env";
import { projectQueryKeys, projectReadFileQueryOptions } from "~/lib/projectReactQuery";
import { cn, isMacPlatform } from "~/lib/utils";
import { cn } from "~/lib/utils";
import { isMarkdownPreviewFilePath } from "~/markdownPreview";
import { readNativeApi } from "~/nativeApi";
import { type CodeContextSelection, CodeMirrorViewer } from "./CodeMirrorViewer";
Expand Down Expand Up @@ -600,7 +600,7 @@ export default function CodeViewerPanel() {
[setPendingContext],
);

const modKey = isMacPlatform(navigator.platform) ? "\u2318" : "Ctrl+";


return (
<div className="flex h-full w-full flex-col bg-background">
Expand All @@ -618,9 +618,6 @@ export default function CodeViewerPanel() {
onCloseAll={onCloseAll}
/>
<div className="flex shrink-0 items-center gap-2 [-webkit-app-region:no-drag]">
<span className="hidden text-[10px] text-muted-foreground/50 sm:inline">
Select code + {modKey}L to add context
</span>
<Button
size="icon-xs"
variant="ghost"
Expand Down
6 changes: 1 addition & 5 deletions apps/web/src/components/file-view/FileViewShell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { useCallback, useEffect } from "react";
import { useAppSettings } from "~/appSettings";
import { useCodeViewerStore } from "~/codeViewerStore";
import { useTheme } from "~/hooks/useTheme";
import { isMacPlatform } from "~/lib/utils";
import type { CodeContextSelection } from "../CodeMirrorViewer";
import { CodeViewerFileContent, CodeViewerTabStrip } from "../CodeViewerPanel";
import { Button } from "../ui/button";
Expand Down Expand Up @@ -85,7 +84,7 @@ export function FileViewShell(props: { initialCwd: string; initialPath: string |
[setPendingContext],
);

const modKey = isMacPlatform(navigator.platform) ? "\u2318" : "Ctrl+";


return (
<div className="flex h-full w-full flex-col">
Expand All @@ -99,9 +98,6 @@ export function FileViewShell(props: { initialCwd: string; initialPath: string |
onCloseAll={onCloseAll}
/>
<div className="flex shrink-0 items-center gap-2 [-webkit-app-region:no-drag]">
<span className="hidden text-[10px] text-muted-foreground/50 sm:inline">
Select code + {modKey}L to add context
</span>
<Button
size="icon-xs"
variant="ghost"
Expand Down
Loading