Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -1,11 +1,9 @@
import { Link, useLocation } from "react-router";
import { useEffect, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
import { FeatherSidebarClose, FeatherSidebarOpen } from "@subframe/core";
import UrlUtils from "~/utils/app/UrlUtils";
import Tabs from "../tabs/Tabs";
import EntityIcon from "~/components/layouts/icons/EntityIcon";
import { IconButton, SidebarInside } from "~/ui";
import { SidebarInside } from "~/ui";
export type IconDto = {
name: string;
@@ -35,7 +33,6 @@ export default function SidebarIconsLayout({
};
scrollRestoration?: boolean;
}) {
const { t } = useTranslation();
const location = useLocation();
const mainElement = useRef<HTMLDivElement>(null);
// SSR-safe: Server rendert immer aufgeklappt, der gemerkte Zustand wird erst nach Hydration geladen.
@@ -84,9 +81,7 @@ export default function SidebarIconsLayout({
) : (
item.icon
);
// Eingeklappt: Davids zentrierte icon-only-Variant (Icon mittig, Text aus, Selected-Bg als sauberes
// Quadrat). Der Link zentriert das w-auto-Item in der schmalen Rail (justify-center), sonst klebt das
// Icon links. Aufgeklappt: icon-and-text, w-full -> linksbündig wie gehabt. Die Width bleibt animiert.
// Collapsed: center the icon-only item in the narrow rail. Expanded: keep the regular label row.
return (
<Link key={idx} prefetch={item.prefetch} to={item.href} className="flex w-full justify-center" title={item.name}>
<SidebarInside.NavItem icon={iconNode} selected={current} variant={collapsed ? "icon-only" : "icon-and-text"}>
@@ -101,14 +96,13 @@ export default function SidebarIconsLayout({
return (
<div className="sm:flex sm:flex-row">
{/* Desktop: Inner-Sidebar in Davids Optik, echt einklappbar (Width-Transition) */}
{/* Desktop: Inner sidebar uses the same mechanical width-collapse as the main navigation. */}
<div className="relative hidden sm:flex">
<SidebarInside
visible={true}
variant="open"
className={`min-h-[calc(100vh-70px)] min-w-0 overflow-hidden ${animate ? "transition-[width] duration-200 ease-in-out" : ""} ${
collapsed ? "w-12" : "w-[208px]"
}`}
variant={collapsed ? "closed" : "open"}
onToggleCollapse={toggleCollapsed}
className={`min-h-[calc(100svh-4rem)] ${animate ? "" : "transition-none"}`}
>
{topItems.map(renderItem)}
{bottomItems.length > 0 && (
@@ -118,17 +112,6 @@ export default function SidebarIconsLayout({
</div>
)}
</SidebarInside>
{/* Eigener sichtbarer Toggle: Davids interner Button wird vom overflow-hidden der Bar verdeckt. */}
<div className="absolute -right-[17px] top-[26px] z-20 flex h-8 w-8 items-center justify-center">
<IconButton
variant="tertiary"
size="extra-small"
square={true}
icon={collapsed ? <FeatherSidebarOpen /> : <FeatherSidebarClose />}
onClick={toggleCollapsed}
aria-label={t("components.sidebar.toggle")}
/>
</div>
</div>
{/* Mobile: Tabs-Leiste (unverändert) */}