From 2a727b2a7185db569a94f53849649818e75eee50 Mon Sep 17 00:00:00 2001 From: openhands Date: Sun, 26 Jul 2026 17:29:18 +0200 Subject: [PATCH] refactor: smaller toolbar icons, remove language and theme switchers from client --- src/app/client/client-view.tsx | 187 ++++++++++++++++----------------- 1 file changed, 89 insertions(+), 98 deletions(-) diff --git a/src/app/client/client-view.tsx b/src/app/client/client-view.tsx index 4f024017..e86b8139 100644 --- a/src/app/client/client-view.tsx +++ b/src/app/client/client-view.tsx @@ -4,8 +4,6 @@ import { LogOut } from "lucide-react"; import Link from "next/link"; import { signOut } from "next-auth/react"; import { type ReactNode, useCallback, useEffect, useState } from "react"; -import { LanguageSwitcher } from "@/components/language-switcher"; -import { ThemeSwitcher } from "@/components/theme-switcher"; function ToolbarBtn({ onClick, @@ -19,7 +17,7 @@ function ToolbarBtn({ href?: string; }) { const cls = - "w-9 h-9 sm:w-10 sm:h-10 rounded-lg border-2 cursor-pointer flex items-center justify-center shadow-lg transition-all duration-200 hover:-translate-y-0.5 hover:shadow-xl active:translate-y-0"; + "w-7 h-7 sm:w-8 sm:h-8 rounded-lg border-2 cursor-pointer flex items-center justify-center shadow-lg transition-all duration-200 hover:-translate-y-0.5 hover:shadow-xl active:translate-y-0"; const style = { borderColor: "color-mix(in srgb, var(--color-primary, #eeb425) 75%, black)", background: @@ -98,104 +96,97 @@ export function ClientView({ className="relative w-screen h-screen overflow-hidden" style={{ backgroundColor: "var(--color-background)" }} > -
-
- - - Home - - - - - window.location.reload()} title="Reload"> - - Reload - - - - - - - - Fullscreen - - - -
+ + - - Online users - - - - {onlineCount} -
- - signOut({ callbackUrl: "/" })} - title="Logout" + Home + + + + + window.location.reload()} title="Reload"> + - - -
- -
- + Reload + + + + + + + + Fullscreen + + + +
+ + Online users + + + + {onlineCount}
+ signOut({ callbackUrl: "/" })} + title="Logout" + > + +