mirror of
https://github.com/abusoww/tuxmate.git
synced 2026-04-18 16:23:22 +02:00
feat: Enhance UI with system theme, refined headers, and new layout
- layout: Auto-detect system theme on first visit - header: Refined layout (centered, uppercase subtitle, inline help) - categories: Compact 'Soft Pill' design with improved focus state - data: Reorganized Zellij to CLI Tools - lint: Fixed various linting issues
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import { useState, useEffect, useCallback } from 'react';
|
||||
import { Check, Copy, ChevronUp, Download } from 'lucide-react';
|
||||
import { Check, Copy, ChevronUp, Download, X } from 'lucide-react';
|
||||
import { distros, type DistroId } from '@/lib/data';
|
||||
import { generateInstallScript } from '@/lib/generateInstallScript';
|
||||
import { analytics } from '@/lib/analytics';
|
||||
@@ -227,6 +227,20 @@ export function CommandFooter({
|
||||
</code>
|
||||
</div>
|
||||
|
||||
{/* Clear button */}
|
||||
<button
|
||||
onClick={clearAll}
|
||||
disabled={selectedCount === 0}
|
||||
className={`flex items-center gap-1.5 px-3 py-3 border-l border-[var(--border-primary)]/30 transition-colors ${selectedCount > 0
|
||||
? 'text-[var(--text-muted)] hover:bg-rose-500/10 hover:text-rose-400'
|
||||
: 'text-[var(--text-muted)] opacity-50 cursor-not-allowed'
|
||||
}`}
|
||||
title="Clear All (c)"
|
||||
>
|
||||
<X className="w-3 h-3 shrink-0" />
|
||||
<span className="hidden sm:inline whitespace-nowrap">Clear</span>
|
||||
</button>
|
||||
|
||||
{/* Download button */}
|
||||
<button
|
||||
onClick={handleDownload}
|
||||
|
||||
Reference in New Issue
Block a user