AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
fix(automations): make the automations page fit small screens (#17083)
Othman Abu Ajamiehd856c213373f
diff --git a/packages/web/src/app/components/project-layout/project-dashboard-layout-header.tsx b/packages/web/src/app/components/project-layout/project-dashboard-layout-header.tsxindex 518abaf10e9..2471c841124 100644--- a/packages/web/src/app/components/project-layout/project-dashboard-layout-header.tsx+++ b/packages/web/src/app/components/project-layout/project-dashboard-layout-header.tsx@@ -48,7 +48,7 @@ const AnimatedTab = ({<TabsTriggervalue={tab.to}variant="outline"- className="pb-3"+ className="pb-3 whitespace-nowrap"onClick={onClick}data-state={isActive ? 'active' : 'inactive'}onMouseEnter={() => iconRef.current?.startAnimation()}@@ -147,7 +147,7 @@ export const ProjectDashboardLayoutHeader = () => {<div className="flex flex-col">{!isEmbedded && <ProjectDashboardPageHeader />}{!embedState.hideSideNav && (- <Tabs className="px-3 pt-2 border-b">+ <Tabs className="px-3 pt-2 border-b overflow-x-auto scrollbar-none"><TabsList variant="outline">{visiblePrimaryTabs.map((tab) => (<AnimatedTabdiff --git a/packages/web/src/app/components/project-layout/project-dashboard-page-header.tsx b/packages/web/src/app/components/project-layout/project-dashboard-page-header.tsxindex 71214ba911c..24266916826 100644--- a/packages/web/src/app/components/project-layout/project-dashboard-page-header.tsx+++ b/packages/web/src/app/components/project-layout/project-dashboard-page-header.tsx@@ -101,9 +101,10 @@ export const ProjectDashboardPageHeader = ({};const titleContent = (- <div className="flex items-center gap-1">+ <div className="flex items-center gap-1 min-w-0"><ApProjectDisplaytitle={getProjectName(project)}+ containerClassName="min-w-0"maxLengthToNotShowTooltip={30}titleClassName="text-sm font-medium"projectType={project.type}@@ -112,7 +113,7 @@ export const ProjectDashboardPageHeader = ({<TooltipProvider><Tooltip><TooltipTrigger asChild>- <Lock className="w-4 h-4" />+ <Lock className="w-4 h-4 shrink-0" /></TooltipTrigger><TooltipContent><p>@@ -128,7 +129,7 @@ export const ProjectDashboardPageHeader = ({);const rightContent = isProjectPage ? (- <div className="flex items-center gap-3">+ <div className="flex items-center gap-3 shrink-0">{showProjectMembersIcons && (<Buttonvariant="ghost"@@ -154,8 +155,11 @@ export const ProjectDashboardPageHeader = ({variant="ghost"size="sm"onClick={() => setInviteOpen(true)}+ aria-label={t('Add Members')}>- <span className="text-sm font-medium">{t('Add Members')}</span>+ <span className="hidden sm:inline text-sm font-medium">+ {t('Add Members')}+ </span></AnimatedIconButton>)}<AnimatedIconButtondiff --git a/packages/web/src/components/custom/page-header.tsx b/packages/web/src/components/custom/page-header.tsxindex 9f400a3b6d7..9803c1ac2a9 100644--- a/packages/web/src/components/custom/page-header.tsx+++ b/packages/web/src/components/custom/page-header.tsx@@ -23,8 +23,8 @@ export const PageHeader = ({className,)}>- <div className="flex items-center gap-1 grow">- <div className="grow">+ <div className="flex items-center gap-1 grow min-w-0">+ <div className="grow min-w-0">{typeof title === 'string' ? (<h1 className="text-base font-semibold">{title}</h1>) : (diff --git a/packages/web/src/features/automations/components/automations-empty-state.tsx b/packages/web/src/features/automations/components/automations-empty-state.tsxindex 8e9c2e60f05..db174a29fb9 100644--- a/packages/web/src/features/automations/components/automations-empty-state.tsx+++ b/packages/web/src/features/automations/components/automations-empty-state.tsx@@ -95,7 +95,7 @@ const GetStartedCard = ({<CardContent className="p-0"><div className="flex items-center gap-3 px-4 py-4"><div- className={`w-10 h-10 rounded-xl flex items-center justify-center ${iconBgClass}`}+ className={`w-10 h-10 shrink-0 rounded-xl flex items-center justify-center ${iconBgClass}`}>{icon}</div>@@ -259,14 +259,14 @@ export const AutomationsEmptyState = ({const branding = flagsHooks.useWebsiteBranding();return (- <div className="flex flex-col gap-8 py-8 px-4 max-w-5xl mx-auto">+ <div className="@container flex flex-col gap-8 py-8 px-4 w-full max-w-5xl mx-auto"><div><h2 className="text-sm font-medium text-gray-11 mb-4">{t('Get started with {brandName}', {brandName: branding.websiteName ?? platform.name,})}</h2>- <div className="flex gap-4">+ <div className="flex flex-col @2xl:flex-row gap-4"><GetStartedCardicon={<Workflow className="h-5 w-5 text-accent-11" />}iconBgClass="bg-accent-3"@@ -373,7 +373,7 @@ export const AutomationsEmptyState = ({<ChevronRight className="h-4 w-4" /></button></div>- <div className="grid grid-cols-1 md:grid-cols-3 gap-4">+ <div className="grid grid-cols-1 @3xl:grid-cols-3 gap-4">{isLoadingTemplates ? (<><TemplateCardSkeleton />diff --git a/packages/web/src/features/automations/components/automations-pagination.tsx b/packages/web/src/features/automations/components/automations-pagination.tsxindex 047609ff78b..8b6519114c9 100644--- a/packages/web/src/features/automations/components/automations-pagination.tsx+++ b/packages/web/src/features/automations/components/automations-pagination.tsx@@ -32,9 +32,11 @@ export const AutomationsPagination = ({const maxPages = Math.max(totalPages, 1);return (- <div className="flex items-center justify-end gap-4 px-2 py-4 text-sm">+ <div className="flex flex-wrap items-center justify-end gap-x-4 gap-y-2 px-2 py-4 text-sm"><div className="flex items-center gap-2">- <span className="text-gray-11">{t('Rows per page')}</span>+ <span className="text-gray-11 whitespace-nowrap">+ {t('Rows per page')}+ </span><Selectvalue={String(pageSize)}onValueChange={(val) => onPageSizeChange(Number(val))}@@ -51,26 +53,28 @@ export const AutomationsPagination = ({</SelectContent></Select></div>- <Button- variant="ghost"- size="sm"- onClick={onPrevPage}- disabled={currentPage === 0}- className="gap-1"- >- <ChevronLeft className="h-4 w-4" />- {t('Previous')}- </Button>- <Button- variant="ghost"- size="sm"- onClick={onNextPage}- disabled={currentPage >= maxPages - 1}- className="gap-1"- >- {t('Next')}- <ChevronRight className="h-4 w-4" />- </Button>+ <div className="flex items-center gap-4">+ <Button+ variant="ghost"+ size="sm"+ onClick={onPrevPage}+ disabled={currentPage === 0}+ className="gap-1"+ >+ <ChevronLeft className="h-4 w-4" />+ {t('Previous')}+ </Button>+ <Button+ variant="ghost"+ size="sm"+ onClick={onNextPage}+ disabled={currentPage >= maxPages - 1}+ className="gap-1"+ >+ {t('Next')}+ <ChevronRight className="h-4 w-4" />+ </Button>+ </div></div>);};diff --git a/packages/web/src/features/automations/components/automations-table.tsx b/packages/web/src/features/automations/components/automations-table.tsxindex a4884fdb5b1..2f23c527533 100644--- a/packages/web/src/features/automations/components/automations-table.tsx+++ b/packages/web/src/features/automations/components/automations-table.tsx@@ -143,7 +143,9 @@ export const AutomationsTable = ({return (<div className="overflow-x-auto">- <div className="min-w-[1000px]">+ <div+ className={embedState.isEmbedded ? 'min-w-[950px]' : 'min-w-[1200px]'}+ ><div className="flex items-center h-8 text-xs border-b font-medium text-gray-12 bg-gray-3/50"><div className="w-10 shrink-0 pl-4 pr-1"><Checkbox