Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

751 B
Raw Blame
"use client";

import type { ReactNode } from "react";
import { cn } from "@/lib/utils";
import { useResponsive } from "../responsive/use-responsive";

// A list whose rows grow to ≥44px hit targets on coarse pointers (touch), and
// stay compact with a fine pointer (mouse). Pass plain children — the min-height
// is enforced via a child selector so existing row markup doesn't need to change.
export function TouchList({
  children,
  className,
}: {
  children: ReactNode;
  className?: string;
}) {
  const { pointer } = useResponsive();
  return (
    <div
      role="list"
      className={cn(
        "flex flex-col",
        pointer === "coarse" && "[&>*]:min-h-11",
        className,
      )}
    >
      {children}
    </div>
  );
}