diff --git a/src/css/terminal.css b/src/css/terminal.css index 3fa8169..17e1072 100644 --- a/src/css/terminal.css +++ b/src/css/terminal.css @@ -175,4 +175,9 @@ font-size: 14px; display: flex; justify-content: space-between; +} + +#statusline a { + color: inherit; + text-decoration: none; } \ No newline at end of file diff --git a/src/html/terminal.tsx b/src/html/terminal.tsx index 6fce011..d1f1644 100644 --- a/src/html/terminal.tsx +++ b/src/html/terminal.tsx @@ -35,6 +35,6 @@ export const Terminal: FC = async () => (
  • VRAM 000KB
  • -
    root: /
    +
    root: /
    ) \ No newline at end of file diff --git a/src/js/session.ts b/src/js/session.ts index cf24cae..a40f3f7 100644 --- a/src/js/session.ts +++ b/src/js/session.ts @@ -8,8 +8,8 @@ import { randomId } from "../shared/utils" import { $ } from "./dom" export const sessionId = randomId() -export const projectName = $("project-name") as HTMLSpanElement -export const projectCwd = $("project-cwd") as HTMLSpanElement +export const projectName = $("project-name") as HTMLAnchorElement +export const projectCwd = $("project-cwd") as HTMLAnchorElement export const sessionStore = new Map() export function handleSessionStart(msg: SessionStartMessage) { @@ -44,5 +44,5 @@ function displayProjectPath(path: string): string { let prefix = sessionStore.get("NOSE_DIR") || "" prefix += "/" + sessionStore.get("project") - return path.replace(prefix, "") + return path.replace(prefix, "") || "/" } \ No newline at end of file