From e52578cad93ae361ba228ca6147ffa562276960e Mon Sep 17 00:00:00 2001 From: Aima Date: Fri, 14 Aug 2026 07:08:39 +0500 Subject: [PATCH 1/3] Advertisement Widget Advertisement widget for CraftBot dashboard --- .../pages/Dashboard/layout/defaultLayout.ts | 1 + .../Dashboard/layout/normalizeLayouts.ts | 17 +- .../Dashboard/widgets/CraftBotIntroWidget.tsx | 323 +++++++++++++++++ .../src/pages/Dashboard/widgets/registry.ts | 11 + .../Dashboard/widgets/widgets.module.css | 338 ++++++++++++++++++ 5 files changed, 688 insertions(+), 2 deletions(-) create mode 100644 app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/CraftBotIntroWidget.tsx diff --git a/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/defaultLayout.ts b/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/defaultLayout.ts index 03d210612..e73aff536 100644 --- a/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/defaultLayout.ts +++ b/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/defaultLayout.ts @@ -26,6 +26,7 @@ import { WIDGET_REGISTRY } from '../widgets/registry' type Placement = { id: string; x: number; y: number; w: number; h: number } const ORIGINAL_ORDER = [ + 'craftBotIntro', 'taskStats', 'tokenUsage', 'systemResources', diff --git a/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/normalizeLayouts.ts b/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/normalizeLayouts.ts index 8ed67029c..429fe37ad 100644 --- a/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/normalizeLayouts.ts +++ b/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/normalizeLayouts.ts @@ -105,13 +105,26 @@ function normalizeBreakpoint(items: unknown, widgetIds: string[], bp: Breakpoint * bounds is pulled back to the nearest one rather than left as an odd shape. */ export function normalizeLayout(layout: NamedLayout): NamedLayout { - const widgetIds = (Array.isArray(layout.widgetIds) ? layout.widgetIds : []) + const baseWidgetIds = (Array.isArray(layout.widgetIds) ? layout.widgetIds : []) .filter(id => typeof id === 'string' && !!WIDGET_REGISTRY[id]) + // Ensure craftBotIntro is ALWAYS included at top-left by default if missing + const widgetIds = baseWidgetIds.includes('craftBotIntro') + ? baseWidgetIds + : ['craftBotIntro', ...baseWidgetIds] + const stored = (layout.layouts ?? {}) as Partial const layouts = BREAKPOINT_KEYS.reduce((acc, bp) => { - acc[bp] = normalizeBreakpoint(stored[bp], widgetIds, bp) + const bpItems = normalizeBreakpoint(stored[bp], widgetIds, bp) + const introIndex = bpItems.findIndex(item => item.i === 'craftBotIntro') + if (introIndex !== -1) { + bpItems[introIndex] = { ...bpItems[introIndex], x: 0, y: 0 } + } else { + const bounds = boundsFor(bp, 'craftBotIntro') + bpItems.unshift({ i: 'craftBotIntro', x: 0, y: 0, w: 1, h: 1, ...bounds }) + } + acc[bp] = bpItems return acc }, {} as BreakpointLayouts) diff --git a/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/CraftBotIntroWidget.tsx b/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/CraftBotIntroWidget.tsx new file mode 100644 index 000000000..5ddd75447 --- /dev/null +++ b/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/CraftBotIntroWidget.tsx @@ -0,0 +1,323 @@ +import { useState, useRef, useEffect } from 'react' +import { Zap, Plug, Brain, Box, ChevronRight, ArrowLeft, ExternalLink } from 'lucide-react' +import { CraftBotMascot, useMascotState } from '@mascot' +import styles from './widgets.module.css' + +interface BannerItem { + id: string + categoryLabel: string + title: string + subtitle: string + simpleDesc: string + extendedPoints: string[] + fourBlockPoints: string[] + icon: typeof Zap +} + +const BANNERS: BannerItem[] = [ + { + id: 'autonomous', + categoryLabel: 'Autonomous', + title: 'Autonomous Execution', + subtitle: 'Self-directed AI development engine', + simpleDesc: 'Solves coding tasks step-by-step, edits files, and tests code automatically.', + extendedPoints: [ + 'Solves multi-step coding tasks & feature workflows', + 'Edits, creates, and refactors project files automatically', + 'Runs automated tests & verifies error diagnostics' + ], + fourBlockPoints: [ + 'Solves multi-step coding tasks & end-to-end feature workflows', + 'Edits, creates, and refactors workspace files automatically', + 'Executes unit tests & automatically verifies runtime diagnostics', + 'Traces stack traces to isolate and fix root causes directly', + 'Maintains strict control flow scoping & error resilience' + ], + icon: Zap + }, + { + id: 'mcp', + categoryLabel: 'MCP Tools', + title: 'MCP Tools & API Integration', + subtitle: 'Extensible Model Context Protocol ecosystem', + simpleDesc: 'Connects directly to databases, external services, web APIs, and tools.', + extendedPoints: [ + 'Connects to external services, databases & web APIs', + 'Integrates with Model Context Protocol (MCP) toolkits', + 'Executes terminal commands & verified workspace scripts' + ], + fourBlockPoints: [ + 'Connects to external services, databases, and third-party APIs', + 'Integrates with Model Context Protocol (MCP) server toolkits', + 'Executes verified terminal shell commands & workspace scripts', + 'Fetches live web documentation & parses API payload schemas', + 'Handles async background tasks with status reporting' + ], + icon: Plug + }, + { + id: 'memory', + categoryLabel: 'Smart Memory', + title: 'Smart Context & Memory', + subtitle: 'Long-term vector codebase intelligence', + simpleDesc: 'Remembers your project structure and keeps chat sessions fast and smart.', + extendedPoints: [ + 'Maintains vector-indexed memory of your codebase', + 'Compresses chat context to keep responses lightning fast', + 'Optimizes token budgets for long development sessions' + ], + fourBlockPoints: [ + 'Maintains vector-indexed embeddings of your codebase', + 'Compresses chat context history to keep responses lightning fast', + 'Optimizes token budgets for multi-hour development sessions', + 'Recalls past architectural decisions & file symbol dependencies', + 'Monitors token context windows to prevent truncation losses' + ], + icon: Brain + }, + { + id: 'livingui', + categoryLabel: 'Living UI', + title: 'Living UI & Micro-Apps', + subtitle: 'On-demand interactive web generator', + simpleDesc: 'Generates interactive web screens, live charts, and custom dashboard cards.', + extendedPoints: [ + 'Generates interactive web components on demand', + 'Displays real-time status dashboards & telemetry graphs', + 'Integrates with drag-and-drop widget layouts' + ], + fourBlockPoints: [ + 'Generates interactive web components & micro-apps on demand', + 'Displays real-time status telemetry & dynamic analytics charts', + 'Integrates smoothly with drag-and-drop widget grid layouts', + 'Renders responsive glassmorphism UI widgets with live data', + 'Persists widget configuration state & layout grid preferences' + ], + icon: Box + } +] + +export function CraftBotIntroWidget() { + const mascotState = useMascotState() + const containerRef = useRef(null) + const bannerScrollRef = useRef(null) + + const [showDetails, setShowDetails] = useState(false) + const [currentBannerIndex, setCurrentBannerIndex] = useState(0) + const [isEnlarged, setIsEnlarged] = useState(false) + const [isFourBlocks, setIsFourBlocks] = useState(false) + const [isHovered, setIsHovered] = useState(false) + + const [reaction, setReaction] = useState<'happy' | null>(null) + const [beacon, setBeacon] = useState(false) + const [completedCount, setCompletedCount] = useState(0) + const timerRef = useRef(null) + + // Track widget dimensions for 1x1, 2x1/1x2, and 2x2 (4 blocks) + useEffect(() => { + const node = containerRef.current + if (!node) return + + const observer = new ResizeObserver((entries) => { + for (const entry of entries) { + const { width, height } = entry.contentRect + setIsFourBlocks(width >= 400 && height >= 340) + setIsEnlarged(width > 320 || height > 270) + } + }) + + observer.observe(node) + return () => observer.disconnect() + }, []) + + // Auto-advance slides every 4.5 seconds when open and not hovered + useEffect(() => { + if (!showDetails || isHovered) return + + const interval = setInterval(() => { + setCurrentBannerIndex((prev) => { + const nextIdx = (prev + 1) % BANNERS.length + scrollToIndex(nextIdx) + return nextIdx + }) + }, 4500) + + return () => clearInterval(interval) + }, [showDetails, isHovered]) + + const handleMascotClick = () => { + setReaction('happy') + setBeacon(true) + setCompletedCount((prev) => prev + 1) + + if (timerRef.current !== null) { + clearTimeout(timerRef.current) + } + + timerRef.current = window.setTimeout(() => { + setReaction(null) + setBeacon(false) + }, 1800) + } + + const handleScroll = () => { + if (!bannerScrollRef.current) return + const { scrollLeft, clientWidth } = bannerScrollRef.current + if (clientWidth > 0) { + const idx = Math.round(scrollLeft / clientWidth) + setCurrentBannerIndex(idx) + } + } + + const scrollToIndex = (index: number) => { + if (!bannerScrollRef.current) return + const width = bannerScrollRef.current.clientWidth + bannerScrollRef.current.scrollTo({ + left: index * width, + behavior: 'smooth' + }) + setCurrentBannerIndex(index) + } + + if (showDetails) { + return ( +
setIsHovered(true)} + onMouseLeave={() => setIsHovered(false)} + > + {/* Header Bar */} +
+ + + Explore CraftBot +
+ + {/* Hero Split Card Banner Showcase */} +
+
+ {BANNERS.map((banner) => { + return ( +
+ {/* Left Visual Side with Mascot */} +
+
+ +
+
+ + {/* Right Content Side */} +
+

{banner.title}

+

{banner.subtitle}

+ + {isFourBlocks ? ( +
    + {banner.fourBlockPoints.map((pt, pIdx) => ( +
  • + + {pt} +
  • + ))} +
+ ) : isEnlarged ? ( +
    + {banner.extendedPoints.map((pt, pIdx) => ( +
  • + + {pt} +
  • + ))} +
+ ) : ( +

{banner.simpleDesc}

+ )} +
+
+ ) + })} +
+
+ + {/* Footer Row: Indicator Dots + craftbot.live Link */} +
+
+ {BANNERS.map((banner, idx) => ( +
+ + + craftbot.live + + +
+
+ ) + } + + return ( +
+
+ +
+ +
+

Welcome to CraftBot

+

+ {isFourBlocks + ? 'Your Autonomous AI Agent Workspace & Living UI Platform' + : 'Autonomous Agent & Living UI Platform'} +

+
+ + +
+ ) +} diff --git a/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/registry.ts b/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/registry.ts index 49f0e1a5d..60fc43a1d 100644 --- a/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/registry.ts +++ b/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/registry.ts @@ -13,9 +13,11 @@ import { History, Package, Plug, + Sparkles, TrendingUp, } from 'lucide-react' import type { WidgetDefinition } from './types' +import { CraftBotIntroWidget } from './CraftBotIntroWidget' import { TaskStatsWidget, TaskStatsHeaderBadge } from './TaskStatsWidget' import { TokenUsageWidget, TokenUsageHeaderBadge } from './TokenUsageWidget' import { SystemResourcesWidget } from './SystemResourcesWidget' @@ -46,6 +48,15 @@ import { RecentActivityWidget } from './RecentActivityWidget' // editing them does reach people who already have a saved dashboard, with no // migration to write. export const WIDGET_REGISTRY: Record = { + craftBotIntro: { + id: 'craftBotIntro', + title: 'Welcome to CraftBot', + icon: Sparkles, + description: 'Introduction to CraftBot capabilities, system pillars, and mascot companion.', + component: CraftBotIntroWidget, + sizing: { default: { w: 1, h: 1 }, max: { w: 2, h: 2 } }, + singleton: true, + }, taskStats: { id: 'taskStats', title: 'Task Statistics', diff --git a/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/widgets.module.css b/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/widgets.module.css index 1b6288d4b..340fe136b 100644 --- a/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/widgets.module.css +++ b/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/widgets.module.css @@ -723,3 +723,341 @@ min-width: 0; } } + +/* Compact Simple 1x1 Welcome View */ +.compactSimpleContainer { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + text-align: center; + gap: calc(var(--w-gap) * 0.5); + height: 100%; + width: 100%; + padding: calc(var(--w-pad) * 0.7); + background: var(--bg-tertiary); + border-radius: var(--radius-sm); + border: 1px solid var(--border-color, rgba(0, 0, 0, 0.05)); + box-sizing: border-box; +} + +.compactMascotWrapper { + display: flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + cursor: pointer; + transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); +} + +.compactMascotWrapper:hover { + transform: scale(1.08); +} + +.compactSimpleContent { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + gap: 3px; + width: 100%; + min-width: 0; +} + +.compactSimpleTitle { + font-family: inherit; + font-size: var(--w-title, 15px); + font-weight: 700; + letter-spacing: -0.015em; + color: var(--text-primary); + margin: 0; + line-height: 1.25; + text-align: center; +} + +.compactSimpleSubtitle { + font-family: inherit; + font-size: calc(var(--w-text-xs) * 0.88); + font-weight: 450; + letter-spacing: -0.005em; + color: var(--text-muted); + margin: 0; + line-height: 1.3; + text-align: center; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + max-width: 100%; +} + +.compactLearnMoreBtn { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 5px; + padding: 5px 16px; + background: var(--primary-color, var(--color-primary, #3b82f6)); + color: #ffffff; + font-family: inherit; + font-size: calc(var(--w-text-xs) * 0.85); + font-weight: 600; + letter-spacing: -0.005em; + border: none; + border-radius: 20px; + cursor: pointer; + transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); + box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25); + margin: 2px auto 0 auto; +} + +.compactLearnMoreBtn:hover { + background: var(--primary-hover, var(--color-primary-hover, #2563eb)); + transform: translateY(-1px); + box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35); +} + +/* Compact Detailed View (Showcase Carousel) */ +.introDetailsContainer { + display: flex; + flex-direction: column; + height: 100%; + gap: calc(var(--w-gap) * 0.4); + padding: calc(var(--w-pad) * 0.6); + background: var(--bg-tertiary); + border-radius: var(--radius-sm); + border: 1px solid var(--border-color, rgba(0, 0, 0, 0.05)); + overflow: hidden; + box-sizing: border-box; +} + +.introDetailsHeader { + display: flex; + align-items: center; + gap: 8px; + padding-bottom: 2px; + border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.05)); +} + +.backButton { + display: inline-flex; + align-items: center; + gap: 3px; + padding: 3px 8px; + background: var(--bg-secondary); + color: var(--text-muted); + font-family: inherit; + font-size: calc(var(--w-text-xs) * 0.8); + font-weight: 600; + letter-spacing: -0.005em; + border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08)); + border-radius: 4px; + cursor: pointer; + transition: all 0.15s ease; +} + +.backButton:hover { + color: var(--text-primary); + background: var(--bg-tertiary); +} + +.introDetailsTitle { + font-family: inherit; + font-size: calc(var(--w-text-xs) * 0.95); + font-weight: 700; + letter-spacing: -0.01em; + color: var(--text-primary); +} + +.heroBannerShowcase { + display: flex; + flex: 1; + min-height: 0; + overflow: hidden; + border-radius: var(--radius-sm); + background: var(--bg-secondary); + border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08)); +} + +.bannerScrollContainer { + display: flex; + flex: 1; + height: 100%; + overflow-x: auto; + overflow-y: hidden; + scroll-snap-type: x mandatory; + scrollbar-width: none; + -ms-overflow-style: none; +} + +.bannerScrollContainer::-webkit-scrollbar { + display: none; +} + +.heroBannerCard { + flex: 0 0 100%; + width: 100%; + height: 100%; + scroll-snap-align: start; + display: flex; + align-items: stretch; + box-sizing: border-box; + padding: calc(var(--w-pad) * 0.6); + gap: 12px; +} + +.heroVisualSide { + display: flex; + align-items: center; + justify-content: center; + width: 30%; + min-width: 64px; + background: var(--bg-tertiary); + border-radius: var(--radius-xs, 6px); + border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06)); + flex-shrink: 0; +} + +.heroMascotBox { + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + transition: transform 0.2s ease; +} + +.heroMascotBox:hover { + transform: scale(1.05); +} + +.heroContentSide { + flex: 1; + min-width: 0; + display: flex; + flex-direction: column; + justify-content: space-evenly; +} + +.heroTitle { + font-family: inherit; + font-size: calc(var(--w-text-xs) * 1.2); + font-weight: 750; + letter-spacing: -0.015em; + color: var(--text-primary); + margin: 0; + line-height: 1.25; +} + +.heroSubtitle { + font-family: inherit; + font-size: calc(var(--w-text-xs) * 0.85); + font-weight: 500; + letter-spacing: -0.005em; + color: var(--text-muted); + margin: 0; + line-height: 1.35; +} + +.heroSimpleDesc { + font-family: inherit; + font-size: calc(var(--w-text-xs) * 0.88); + font-weight: 450; + color: var(--text-primary); + line-height: 1.4; + margin: 0; +} + +.heroPointsList { + list-style: none; + margin: 0; + padding: 0; + display: flex; + flex-direction: column; + gap: 4px; +} + +.heroPointsList li { + display: flex; + align-items: flex-start; + gap: 6px; + font-family: inherit; + font-size: calc(var(--w-text-xs) * 0.84); + font-weight: 450; + color: var(--text-primary); + line-height: 1.35; +} + +.heroBullet { + width: 4px; + height: 4px; + border-radius: 50%; + background: var(--primary-color, var(--color-primary, #3b82f6)); + margin-top: 6px; + flex-shrink: 0; +} + +/* Hero Footer Row */ +.heroFooterRow { + display: flex; + align-items: center; + justify-content: space-between; + gap: 8px; + padding-top: 4px; + margin-top: 2px; +} + +.heroDotsGroup { + display: flex; + align-items: center; + gap: 6px; + padding: 3px 8px; + background: var(--bg-tertiary); + border-radius: 12px; + border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08)); +} + +.heroDot { + width: 7px; + height: 7px; + border-radius: 4px; + background: var(--text-muted); + opacity: 0.4; + border: none; + padding: 0; + cursor: pointer; + transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); +} + +.heroDot:hover { + opacity: 0.8; +} + +.activeHeroDot { + width: 20px; + height: 7px; + border-radius: 4px; + background: var(--primary-color, var(--color-primary, #3b82f6)); + opacity: 1; + box-shadow: 0 0 8px rgba(59, 130, 246, 0.4); +} + +.redirectLink { + display: inline-flex; + align-items: center; + gap: 4px; + font-family: inherit; + font-size: calc(var(--w-text-xs) * 0.85); + font-weight: 600; + letter-spacing: -0.005em; + color: var(--primary-color, var(--color-primary, #3b82f6)); + text-decoration: none; + padding: 2px 8px; + border-radius: 4px; + background: rgba(59, 130, 246, 0.08); + border: 1px solid rgba(59, 130, 246, 0.2); + transition: all 0.2s ease; +} + +.redirectLink:hover { + background: rgba(59, 130, 246, 0.18); + transform: translateY(-1px); +} From b62dccac3432516067b5e8c99469f8cd2a1e0587 Mon Sep 17 00:00:00 2001 From: CraftBot Date: Fri, 14 Aug 2026 16:07:59 +0900 Subject: [PATCH 2/3] improve welcome widget --- .../src/pages/Dashboard/layout/constants.ts | 5 +- .../pages/Dashboard/layout/defaultLayout.ts | 91 +++--- .../Dashboard/widgets/CraftBotIntroWidget.tsx | 277 ++++++++++-------- .../Dashboard/widgets/widgets.module.css | 248 +++++++++------- 4 files changed, 351 insertions(+), 270 deletions(-) diff --git a/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/constants.ts b/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/constants.ts index 85fe58015..a7b6fe3a8 100644 --- a/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/constants.ts +++ b/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/constants.ts @@ -8,9 +8,10 @@ export const STORAGE_KEY_ACTIVE_ID = 'craftbot.dashboard.activeLayoutId' * Stored layouts under any other version are discarded on read and the * dashboard reseeds from the default; there is no migration code. Bumped * for grid-unit changes AND for changes to the shipped default (v4 hid - * Recent Activity by default). + * Recent Activity by default; v5 introduced the hero default with the 2x2 + * CraftBot intro). */ -export const STORAGE_VERSION = 4 +export const STORAGE_VERSION = 5 /** * One grid cell IS one original dashboard card. diff --git a/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/defaultLayout.ts b/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/defaultLayout.ts index e73aff536..b349ed570 100644 --- a/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/defaultLayout.ts +++ b/app/ui_layer/browser/frontend/src/pages/Dashboard/layout/defaultLayout.ts @@ -6,17 +6,15 @@ import { WIDGET_REGISTRY } from '../widgets/registry' /** * The seed/default arrangement — and what "Reset layout" restores. * - * This is the ORIGINAL pre-revamp dashboard (the monolithic DashboardPage this - * branch replaced): eight equal-sized panels flowing five per row, in its - * exact source order — Task Statistics, Token Usage, System Resources, Usage - * Patterns, MCP Servers, Skills, Integrations, Model Information. One grid - * cell IS one of those panels (see WIDGET_MIN_CELLS), so every widget seeds at - * 1x1 and the lg row holds exactly the original five; narrower breakpoints - * reflow to fewer per row, same as the old CSS grid did. + * A hero composition: the CraftBot intro widget sits 2x2 at the top-left, with + * the stat cards (Token Usage / System Resources / Usage Patterns over Task + * Statistics / Skills / Model Information) filling the columns beside it, and + * a bottom row of MCP Servers, Integrations, and Living UI next to a 2-wide + * Mascot scene. Narrower breakpoints keep the hero on top and reflow the 1x1 + * cards in pairs. * - * The widgets this revamp introduced (Mascot, Recent Activity, Living UI) - * weren't part of that dashboard, so they trail after the original eight in - * the flow instead of being woven into it. + * Recent Activity deliberately isn't here: it's hidden by default and only + * appears when added via the Add Widget modal. * * Explicit coordinates, not shelf packing: packing by each widget's default * size leaves holes wherever row heights disagree (a taller neighbor blocks @@ -25,41 +23,46 @@ import { WIDGET_REGISTRY } from '../widgets/registry' */ type Placement = { id: string; x: number; y: number; w: number; h: number } -const ORIGINAL_ORDER = [ - 'craftBotIntro', - 'taskStats', - 'tokenUsage', - 'systemResources', - 'usagePatterns', - 'mcpServers', - 'skills', - 'integrations', - 'modelInfo', -] - -// Recent Activity deliberately isn't here: it's hidden by default and only -// appears when added via the Add Widget modal. Living UI takes the slot it -// used to occupy. -const REVAMP_EXTRAS = ['mascot', 'livingUi'] - -// Uniform 1x1 cards flowed left-to-right, one per column — the same reflow -// the old dashboard's repeat(5, 1fr) / 4 / 2 container queries produced. -function flow(ids: string[], perRow: number): Placement[] { - return ids.map((id, i) => ({ - id, - x: i % perRow, - y: Math.floor(i / perRow), - w: 1, - h: 1, - })) -} - -const ALL_IDS = [...ORIGINAL_ORDER, ...REVAMP_EXTRAS] - const DEFAULT_PLACEMENT: Record = { - lg: flow(ALL_IDS, 5), // 5 per row, the original full-width look - md: flow(ALL_IDS, 4), - sm: flow(ALL_IDS, 2), + lg: [ + { id: 'craftBotIntro', x: 0, y: 0, w: 2, h: 2 }, + { id: 'tokenUsage', x: 2, y: 0, w: 1, h: 1 }, + { id: 'systemResources', x: 3, y: 0, w: 1, h: 1 }, + { id: 'usagePatterns', x: 4, y: 0, w: 1, h: 1 }, + { id: 'taskStats', x: 2, y: 1, w: 1, h: 1 }, + { id: 'skills', x: 3, y: 1, w: 1, h: 1 }, + { id: 'modelInfo', x: 4, y: 1, w: 1, h: 1 }, + { id: 'mcpServers', x: 0, y: 2, w: 1, h: 1 }, + { id: 'integrations', x: 1, y: 2, w: 1, h: 1 }, + { id: 'livingUi', x: 2, y: 2, w: 1, h: 1 }, + { id: 'mascot', x: 3, y: 2, w: 2, h: 1 }, + ], + md: [ + { id: 'craftBotIntro', x: 0, y: 0, w: 2, h: 2 }, + { id: 'tokenUsage', x: 2, y: 0, w: 1, h: 1 }, + { id: 'systemResources', x: 3, y: 0, w: 1, h: 1 }, + { id: 'taskStats', x: 2, y: 1, w: 1, h: 1 }, + { id: 'skills', x: 3, y: 1, w: 1, h: 1 }, + { id: 'usagePatterns', x: 0, y: 2, w: 1, h: 1 }, + { id: 'modelInfo', x: 1, y: 2, w: 1, h: 1 }, + { id: 'mcpServers', x: 2, y: 2, w: 1, h: 1 }, + { id: 'integrations', x: 3, y: 2, w: 1, h: 1 }, + { id: 'livingUi', x: 0, y: 3, w: 1, h: 1 }, + { id: 'mascot', x: 1, y: 3, w: 2, h: 1 }, + ], + sm: [ + { id: 'craftBotIntro', x: 0, y: 0, w: 2, h: 2 }, + { id: 'tokenUsage', x: 0, y: 2, w: 1, h: 1 }, + { id: 'systemResources', x: 1, y: 2, w: 1, h: 1 }, + { id: 'taskStats', x: 0, y: 3, w: 1, h: 1 }, + { id: 'skills', x: 1, y: 3, w: 1, h: 1 }, + { id: 'usagePatterns', x: 0, y: 4, w: 1, h: 1 }, + { id: 'modelInfo', x: 1, y: 4, w: 1, h: 1 }, + { id: 'mcpServers', x: 0, y: 5, w: 1, h: 1 }, + { id: 'integrations', x: 1, y: 5, w: 1, h: 1 }, + { id: 'livingUi', x: 0, y: 6, w: 2, h: 1 }, + { id: 'mascot', x: 0, y: 7, w: 2, h: 1 }, + ], } function clamp(value: number, min: number, max: number): number { diff --git a/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/CraftBotIntroWidget.tsx b/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/CraftBotIntroWidget.tsx index 5ddd75447..f53def108 100644 --- a/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/CraftBotIntroWidget.tsx +++ b/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/CraftBotIntroWidget.tsx @@ -1,104 +1,111 @@ import { useState, useRef, useEffect } from 'react' -import { Zap, Plug, Brain, Box, ChevronRight, ArrowLeft, ExternalLink } from 'lucide-react' -import { CraftBotMascot, useMascotState } from '@mascot' +import { Cloud, Users, Github, Box, ChevronRight, ArrowLeft, ExternalLink } from 'lucide-react' +import { CraftBotMascot, useMascotState, getPose } from '@mascot' +import type { MascotState } from '@mascot' +import { Button } from '../../../components/ui' import styles from './widgets.module.css' -interface BannerItem { +interface IntroCard { id: string + variant: 'vision' | 'chips' | 'articles' categoryLabel: string title: string subtitle: string - simpleDesc: string - extendedPoints: string[] - fourBlockPoints: string[] - icon: typeof Zap + /* Short one-liner shown at the smallest (1x1) size instead of items */ + desc: string + items: { label: string; tag?: string; href?: string }[] + cta: { label: string; href: string } + icon: typeof Cloud } -const BANNERS: BannerItem[] = [ +/* Copy comes from craftbot.live and the CraftBot docs. Keep in sync. */ +const CARDS: IntroCard[] = [ { - id: 'autonomous', - categoryLabel: 'Autonomous', - title: 'Autonomous Execution', - subtitle: 'Self-directed AI development engine', - simpleDesc: 'Solves coding tasks step-by-step, edits files, and tests code automatically.', - extendedPoints: [ - 'Solves multi-step coding tasks & feature workflows', - 'Edits, creates, and refactors project files automatically', - 'Runs automated tests & verifies error diagnostics' + id: 'cloud', + variant: 'vision', + categoryLabel: 'CraftBot Live', + title: 'CraftBot Live', + subtitle: 'Your personal CraftBot, always online', + desc: 'Your personal CraftBot, always online', + items: [ + { label: 'No SSH' }, + { label: 'No Docker' }, + { label: 'Runs while you sleep' }, + { label: 'Reach it from any device' } ], - fourBlockPoints: [ - 'Solves multi-step coding tasks & end-to-end feature workflows', - 'Edits, creates, and refactors workspace files automatically', - 'Executes unit tests & automatically verifies runtime diagnostics', - 'Traces stack traces to isolate and fix root causes directly', - 'Maintains strict control flow scoping & error resilience' - ], - icon: Zap + cta: { label: 'Start free', href: 'https://craftbot.live' }, + icon: Cloud }, { - id: 'mcp', - categoryLabel: 'MCP Tools', - title: 'MCP Tools & API Integration', - subtitle: 'Extensible Model Context Protocol ecosystem', - simpleDesc: 'Connects directly to databases, external services, web APIs, and tools.', - extendedPoints: [ - 'Connects to external services, databases & web APIs', - 'Integrates with Model Context Protocol (MCP) toolkits', - 'Executes terminal commands & verified workspace scripts' - ], - fourBlockPoints: [ - 'Connects to external services, databases, and third-party APIs', - 'Integrates with Model Context Protocol (MCP) server toolkits', - 'Executes verified terminal shell commands & workspace scripts', - 'Fetches live web documentation & parses API payload schemas', - 'Handles async background tasks with status reporting' + id: 'livingui', + variant: 'chips', + categoryLabel: 'Living UI', + title: 'An agent that builds and operates its own software', + subtitle: 'Ask for an app and the agent designs, codes, tests, and launches it inside its own interface.', + desc: 'Ask for an app. The agent designs, codes, tests, and launches it.', + items: [ + { label: 'Kanban board' }, + { label: 'CRM' }, + { label: 'Habit tracker' }, + { label: 'Community marketplace' } ], - icon: Plug + cta: { label: 'Browse the Living UI marketplace', href: 'https://craftos.net/marketplace' }, + icon: Box }, { - id: 'memory', - categoryLabel: 'Smart Memory', - title: 'Smart Context & Memory', - subtitle: 'Long-term vector codebase intelligence', - simpleDesc: 'Remembers your project structure and keeps chat sessions fast and smart.', - extendedPoints: [ - 'Maintains vector-indexed memory of your codebase', - 'Compresses chat context to keep responses lightning fast', - 'Optimizes token budgets for long development sessions' + id: 'bundles', + variant: 'chips', + categoryLabel: 'Agent Bundles', + title: '40+ prebuilt agent personas', + subtitle: 'Import CEO, finance, and DevOps agents with one click. 120 ready-made playbooks cover common automations.', + desc: 'CEO, finance, DevOps, and 40+ other personas. One click to import.', + items: [ + { label: 'CEO agent' }, + { label: 'Finance agent' }, + { label: 'DevOps engineer' }, + { label: '120 playbooks' }, + { label: 'One-click import' } ], - fourBlockPoints: [ - 'Maintains vector-indexed embeddings of your codebase', - 'Compresses chat context history to keep responses lightning fast', - 'Optimizes token budgets for multi-hour development sessions', - 'Recalls past architectural decisions & file symbol dependencies', - 'Monitors token context windows to prevent truncation losses' - ], - icon: Brain + cta: { label: 'Get agent bundles', href: 'https://github.com/CraftOS-dev/craftbot-agent-bundles' }, + icon: Users }, { - id: 'livingui', - categoryLabel: 'Living UI', - title: 'Living UI & Micro-Apps', - subtitle: 'On-demand interactive web generator', - simpleDesc: 'Generates interactive web screens, live charts, and custom dashboard cards.', - extendedPoints: [ - 'Generates interactive web components on demand', - 'Displays real-time status dashboards & telemetry graphs', - 'Integrates with drag-and-drop widget layouts' - ], - fourBlockPoints: [ - 'Generates interactive web components & micro-apps on demand', - 'Displays real-time status telemetry & dynamic analytics charts', - 'Integrates smoothly with drag-and-drop widget grid layouts', - 'Renders responsive glassmorphism UI widgets with live data', - 'Persists widget configuration state & layout grid preferences' + id: 'community', + variant: 'articles', + categoryLabel: 'Open Source', + title: 'One agent. Every kind of work.', + subtitle: 'MIT-licensed and free to self-host. Active development, weekly improvements.', + desc: 'MIT-licensed, self-hostable, built in the open.', + items: [ + { + label: 'CraftOS-dev/CraftBot', + tag: 'GitHub', + href: 'https://github.com/CraftOS-dev/CraftBot' + }, + { + label: 'Join the CraftBot community', + tag: 'Discord', + href: 'https://discord.gg/ZN9YHc37HG' + }, + { + label: 'Community-built Living UIs', + tag: 'Market', + href: 'https://craftos.net/marketplace' + } ], - icon: Box + cta: { label: 'Star on GitHub', href: 'https://github.com/CraftOS-dev/CraftBot' }, + icon: Github } ] export function CraftBotIntroWidget() { const mascotState = useMascotState() + // This widget's mascot never sleeps: any state whose pose renders the + // sleeping silhouette shows the awake 'resting' pose here instead. Scoped to + // this widget only — the Mascot widget and chat mascot keep sleep behavior. + const awakeMascotState: MascotState = getPose(mascotState.state).sleeping + ? 'resting' + : mascotState.state const containerRef = useRef(null) const bannerScrollRef = useRef(null) @@ -136,7 +143,7 @@ export function CraftBotIntroWidget() { const interval = setInterval(() => { setCurrentBannerIndex((prev) => { - const nextIdx = (prev + 1) % BANNERS.length + const nextIdx = (prev + 1) % CARDS.length scrollToIndex(nextIdx) return nextIdx }) @@ -197,8 +204,6 @@ export function CraftBotIntroWidget() { Back - - Explore CraftBot {/* Hero Split Card Banner Showcase */} @@ -208,48 +213,71 @@ export function CraftBotIntroWidget() { className={styles.bannerScrollContainer} onScroll={handleScroll} > - {BANNERS.map((banner) => { - return ( -
- {/* Left Visual Side with Mascot */} -
-
- -
-
+ {CARDS.map((card) => { + const Icon = card.icon + const showItems = isEnlarged || isFourBlocks - {/* Right Content Side */} + return ( +
-

{banner.title}

-

{banner.subtitle}

+ {card.variant !== 'vision' && showItems && ( + + + {card.categoryLabel} + + )} - {isFourBlocks ? ( -
    - {banner.fourBlockPoints.map((pt, pIdx) => ( -
  • - - {pt} -
  • +

    + {card.variant === 'vision' && ( + + )} + {card.title} +

    + {showItems &&

    {card.subtitle}

    } + + {card.variant === 'articles' && showItems ? ( +
    + {card.items.slice(0, isFourBlocks ? 3 : 2).map((item) => ( + + {item.tag} + {item.label} + ))} -
- ) : isEnlarged ? ( -
    - {banner.extendedPoints.map((pt, pIdx) => ( -
  • - - {pt} -
  • +
+ ) : card.variant !== 'articles' && showItems ? ( +
+ {card.items.slice(0, isFourBlocks ? card.items.length : 5).map((item) => ( + + {item.label} + ))} - +
) : ( -

{banner.simpleDesc}

+

{card.desc}

)} + + + {card.cta.label} + +
) @@ -260,9 +288,9 @@ export function CraftBotIntroWidget() { {/* Footer Row: Indicator Dots + craftbot.live Link */}
- {BANNERS.map((banner, idx) => ( + {CARDS.map((card, idx) => (
- + Learn More +
) } diff --git a/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/widgets.module.css b/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/widgets.module.css index 340fe136b..9a9add8db 100644 --- a/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/widgets.module.css +++ b/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/widgets.module.css @@ -735,9 +735,6 @@ height: 100%; width: 100%; padding: calc(var(--w-pad) * 0.7); - background: var(--bg-tertiary); - border-radius: var(--radius-sm); - border: 1px solid var(--border-color, rgba(0, 0, 0, 0.05)); box-sizing: border-box; } @@ -790,30 +787,12 @@ max-width: 100%; } -.compactLearnMoreBtn { - display: inline-flex; - align-items: center; - justify-content: center; - gap: 5px; - padding: 5px 16px; - background: var(--primary-color, var(--color-primary, #3b82f6)); - color: #ffffff; - font-family: inherit; - font-size: calc(var(--w-text-xs) * 0.85); - font-weight: 600; - letter-spacing: -0.005em; - border: none; - border-radius: 20px; - cursor: pointer; - transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); - box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25); - margin: 2px auto 0 auto; -} - -.compactLearnMoreBtn:hover { - background: var(--primary-hover, var(--color-primary-hover, #2563eb)); - transform: translateY(-1px); - box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35); +.compactSimpleContainer .compactLearnMoreBtn { + margin-top: 12px; + border-radius: 9999px; + /* Extra left padding offsets the chevron's optical whitespace on the right */ + padding-left: 26px; + padding-right: 22px; } /* Compact Detailed View (Showcase Carousel) */ @@ -823,9 +802,6 @@ height: 100%; gap: calc(var(--w-gap) * 0.4); padding: calc(var(--w-pad) * 0.6); - background: var(--bg-tertiary); - border-radius: var(--radius-sm); - border: 1px solid var(--border-color, rgba(0, 0, 0, 0.05)); overflow: hidden; box-sizing: border-box; } @@ -860,21 +836,13 @@ background: var(--bg-tertiary); } -.introDetailsTitle { - font-family: inherit; - font-size: calc(var(--w-text-xs) * 0.95); - font-weight: 700; - letter-spacing: -0.01em; - color: var(--text-primary); -} - .heroBannerShowcase { display: flex; flex: 1; min-height: 0; overflow: hidden; border-radius: var(--radius-sm); - background: var(--bg-secondary); + background: var(--bg-tertiary); border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08)); } @@ -893,106 +861,191 @@ display: none; } +/* Carousel card. Type and spacing scale with the widget box via cqmin + (the WidgetChrome .chrome element is the size container), so the card + reads like a proper marketing slide at 2x2 without dwarfing 1x1. */ .heroBannerCard { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; display: flex; - align-items: stretch; box-sizing: border-box; - padding: calc(var(--w-pad) * 0.6); - gap: 12px; + padding: clamp(18px, calc(9px + 4.5cqmin), 36px); } -.heroVisualSide { +/* Content column: grouped at the vertical center with tight rhythm — + eyebrow / title+subtitle / items / CTA — instead of scattered. */ +.heroContentSide { + flex: 1; + min-width: 0; display: flex; - align-items: center; + flex-direction: column; + align-items: flex-start; justify-content: center; - width: 30%; - min-width: 64px; - background: var(--bg-tertiary); - border-radius: var(--radius-xs, 6px); - border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06)); - flex-shrink: 0; } -.heroMascotBox { - display: flex; +.visionCard .heroContentSide { align-items: center; + text-align: center; +} + +.visionCard .chipRow { justify-content: center; - cursor: pointer; - transition: transform 0.2s ease; } -.heroMascotBox:hover { - transform: scale(1.05); +.visionCard .heroTitle { + display: inline-flex; + align-items: center; + gap: clamp(6px, calc(3px + 1.5cqmin), 11px); } -.heroContentSide { - flex: 1; - min-width: 0; - display: flex; - flex-direction: column; - justify-content: space-evenly; +.titleFavicon { + width: clamp(18px, calc(9px + 3.4cqmin), 30px); + height: clamp(18px, calc(9px + 3.4cqmin), 30px); + flex-shrink: 0; +} + +.cardEyebrow { + display: inline-flex; + align-items: center; + gap: 5px; + font-family: inherit; + font-size: clamp(9px, calc(7.5px + 0.6cqmin), 11.5px); + font-weight: 700; + letter-spacing: 0.08em; + text-transform: uppercase; + color: var(--color-primary, #3b82f6); + margin-bottom: clamp(6px, calc(2px + 1.8cqmin), 16px); } .heroTitle { font-family: inherit; - font-size: calc(var(--w-text-xs) * 1.2); + font-size: clamp(13px, calc(4.5px + 3.4cqmin), 25px); font-weight: 750; - letter-spacing: -0.015em; + letter-spacing: -0.02em; color: var(--text-primary); margin: 0; - line-height: 1.25; + line-height: 1.15; + text-wrap: balance; + max-width: 26ch; } .heroSubtitle { font-family: inherit; - font-size: calc(var(--w-text-xs) * 0.85); - font-weight: 500; + font-size: clamp(11px, calc(7.5px + 1.4cqmin), 15px); + font-weight: 480; letter-spacing: -0.005em; - color: var(--text-muted); - margin: 0; - line-height: 1.35; + color: var(--text-secondary); + margin: clamp(3px, calc(1px + 1.2cqmin), 10px) 0 0; + line-height: 1.45; + max-width: 46ch; } .heroSimpleDesc { font-family: inherit; - font-size: calc(var(--w-text-xs) * 0.88); + font-size: clamp(11px, calc(8px + 1.1cqmin), 13.5px); font-weight: 450; + color: var(--text-secondary); + line-height: 1.45; + margin: clamp(6px, calc(2px + 1.8cqmin), 16px) 0 0; + max-width: 46ch; +} + +/* Card variant: chip/tag showcase (marketplace apps, agent bundle roles) */ +.chipRow { + display: flex; + flex-wrap: wrap; + gap: 6px; + margin-top: clamp(10px, calc(5px + 2cqmin), 20px); +} + +.chip { + font-family: inherit; + font-size: clamp(10px, calc(8px + 0.8cqmin), 12.5px); + font-weight: 550; color: var(--text-primary); - line-height: 1.4; - margin: 0; + padding: clamp(2px, calc(1px + 0.6cqmin), 4px) clamp(8px, calc(5px + 1.2cqmin), 12px); + border-radius: 9999px; + background: var(--bg-secondary); + border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08)); + white-space: nowrap; } -.heroPointsList { - list-style: none; - margin: 0; - padding: 0; +/* Card variant: article rows (blog) */ +.articleList { display: flex; flex-direction: column; - gap: 4px; + gap: 6px; + margin-top: clamp(10px, calc(5px + 2cqmin), 20px); + align-self: stretch; + min-width: 0; } -.heroPointsList li { +.articleRow { display: flex; - align-items: flex-start; - gap: 6px; + align-items: center; + gap: 8px; + min-width: 0; + padding: clamp(6px, calc(3px + 1.2cqmin), 10px) clamp(10px, calc(6px + 1.5cqmin), 14px); + border-radius: var(--radius-sm, 8px); + background: var(--bg-secondary); + border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08)); + text-decoration: none; + transition: border-color 0.15s ease; +} + +.articleRow:hover { + border-color: var(--color-primary, #3b82f6); +} + +.articleTag { font-family: inherit; - font-size: calc(var(--w-text-xs) * 0.84); - font-weight: 450; + font-size: clamp(8.5px, calc(7px + 0.6cqmin), 10.5px); + font-weight: 700; + letter-spacing: 0.06em; + text-transform: uppercase; + color: var(--color-primary, #3b82f6); + background: color-mix(in srgb, var(--color-primary, #3b82f6) 14%, transparent); + padding: 2px 7px; + border-radius: 4px; + flex-shrink: 0; +} + +.articleTitle { + font-family: inherit; + font-size: clamp(11px, calc(8.5px + 1cqmin), 13.5px); + font-weight: 500; color: var(--text-primary); line-height: 1.35; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } -.heroBullet { - width: 4px; - height: 4px; - border-radius: 50%; - background: var(--primary-color, var(--color-primary, #3b82f6)); - margin-top: 6px; - flex-shrink: 0; +/* Per-card call-to-action: pill button matching the compact Learn More */ +.cardCta { + display: inline-flex; + align-items: center; + gap: 5px; + margin-top: clamp(10px, calc(4px + 2.6cqmin), 24px); + height: clamp(24px, calc(14px + 2.8cqmin), 34px); + padding: 0 clamp(11px, calc(6px + 1.8cqmin), 18px); + border-radius: 9999px; + background: var(--color-primary, #3b82f6); + color: var(--color-white, #ffffff); + font-family: inherit; + font-size: clamp(10.5px, calc(8.5px + 0.8cqmin), 12.5px); + font-weight: 600; + letter-spacing: -0.005em; + text-decoration: none; + transition: background 0.15s ease; +} + +.cardCta:hover { + background: var(--color-primary-hover, #2563eb); + color: var(--color-white, #ffffff); + text-decoration: none; } /* Hero Footer Row */ @@ -1046,18 +1099,13 @@ gap: 4px; font-family: inherit; font-size: calc(var(--w-text-xs) * 0.85); - font-weight: 600; + font-weight: 500; letter-spacing: -0.005em; - color: var(--primary-color, var(--color-primary, #3b82f6)); - text-decoration: none; - padding: 2px 8px; - border-radius: 4px; - background: rgba(59, 130, 246, 0.08); - border: 1px solid rgba(59, 130, 246, 0.2); - transition: all 0.2s ease; + color: var(--color-primary, #3b82f6); + text-decoration: underline; } .redirectLink:hover { - background: rgba(59, 130, 246, 0.18); - transform: translateY(-1px); + color: var(--color-primary, #3b82f6); + text-decoration-color: currentColor; } From 6c6562ca792c0a5beef018a2f914f83e87d5c9f9 Mon Sep 17 00:00:00 2001 From: CraftBot Date: Fri, 14 Aug 2026 16:09:58 +0900 Subject: [PATCH 3/3] minor update to the token usage widget --- .../frontend/src/pages/Dashboard/widgets/widgets.module.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/widgets.module.css b/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/widgets.module.css index 9a9add8db..845df73fc 100644 --- a/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/widgets.module.css +++ b/app/ui_layer/browser/frontend/src/pages/Dashboard/widgets/widgets.module.css @@ -191,7 +191,7 @@ display: flex; justify-content: center; flex-wrap: wrap; - gap: var(--w-gap); + column-gap: clamp(12px, calc(6px + 2cqmin), 20px); row-gap: calc(var(--w-gap) * 0.5); }