π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: responsive
Nevo David9fedac402f4c
diff --git a/apps/frontend/AGENTS.md b/apps/frontend/AGENTS.mdnew file mode 100644index 000000000..643577dfa--- /dev/null+++ b/apps/frontend/AGENTS.md@@ -0,0 +1,9 @@+<!-- BEGIN:nextjs-agent-rules -->++# This is NOT the Next.js you know++This version has breaking changes β APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices.++This block is written and re-added by `next dev` β verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.++<!-- END:nextjs-agent-rules -->diff --git a/apps/frontend/CLAUDE.md b/apps/frontend/CLAUDE.mdnew file mode 100644index 000000000..43c994c2d--- /dev/null+++ b/apps/frontend/CLAUDE.md@@ -0,0 +1 @@diff --git a/apps/frontend/src/components/agents/agent.tsx b/apps/frontend/src/components/agents/agent.tsxindex af6d3af63..f30410952 100644--- a/apps/frontend/src/components/agents/agent.tsx+++ b/apps/frontend/src/components/agents/agent.tsx@@ -107,12 +107,12 @@ export const AgentList: FC<{ onChange: (arr: any[]) => void }> = ({return (<divclassName={clsx(- 'trz bg-newBgColorInner flex flex-col gap-[15px] transition-all relative',+ 'trz bg-newBgColorInner flex flex-col gap-[15px] transition-all relative mobile:w-full mobile:order-1',collapseMenu === '1' ? 'group sidebar w-[100px]' : 'w-[260px]')}>- <div className="absolute top-0 start-0 w-full h-full p-[20px] overflow-auto scrollbar scrollbar-thumb-fifth scrollbar-track-newBgColor">- <div className="flex items-center">+ <div className="absolute top-0 start-0 w-full h-full p-[20px] mobile:p-[12px] mobile:static mobile:h-auto overflow-auto scrollbar scrollbar-thumb-fifth scrollbar-track-newBgColor">+ <div className="flex items-center mobile:hidden"><h2 className="group-[.sidebar]:hidden flex-1 text-[20px] font-[500] mb-[15px]">{t('select_channels', 'Select Channels')}</h2>@@ -137,13 +137,17 @@ export const AgentList: FC<{ onChange: (arr: any[]) => void }> = ({</svg></div></div>- <div className={clsx('flex flex-col gap-[15px]')}>+ <div+ className={clsx(+ 'flex flex-col gap-[15px] mobile:flex-row mobile:gap-[12px] mobile:ps-[12px] mobile:pt-[6px]'+ )}+ >{sortedIntegrations.map((integration, index) => (<divonClick={setIntegration(integration)}key={integration.id}className={clsx(- 'flex gap-[12px] items-center group/profile justify-center hover:bg-boxHover rounded-e-[8px] hover:opacity-100 cursor-pointer',+ 'flex gap-[12px] items-center group/profile justify-center hover:bg-boxHover rounded-e-[8px] hover:opacity-100 cursor-pointer mobile:shrink-0',!selected.some((p) => p.id === integration.id) && 'opacity-20')}>@@ -182,7 +186,7 @@ export const AgentList: FC<{ onChange: (arr: any[]) => void }> = ({</div><divclassName={clsx(- 'flex-1 whitespace-nowrap text-ellipsis overflow-hidden group-[.sidebar]:hidden',+ 'flex-1 whitespace-nowrap text-ellipsis overflow-hidden group-[.sidebar]:hidden mobile:hidden',integration.disabled && 'opacity-50')}>@@ -203,7 +207,9 @@ export const Agent: FC<{ children: ReactNode }> = ({ children }) => {return (<PropertiesContext.Provider value={{ properties }}><AgentList onChange={setProperties} />- <div className="bg-newBgColorInner flex flex-1">{children}</div>+ <div className="bg-newBgColorInner flex flex-1 mobile:order-3 mobile:min-h-[500px]">+ {children}+ </div><Threads /></PropertiesContext.Provider>);@@ -225,11 +231,11 @@ const Threads: FC = () => {<divclassName={clsx('trz bg-newBgColorInner flex flex-col gap-[15px] transition-all relative',- 'w-[260px]'+ 'w-[260px] mobile:w-full mobile:order-2')}>- <div className="absolute top-0 start-0 w-full h-full p-[20px] overflow-auto scrollbar scrollbar-thumb-fifth scrollbar-track-newBgColor">- <div className="mb-[15px] justify-center flex group-[.sidebar]:pb-[15px]">+ <div className="absolute top-0 start-0 w-full h-full p-[20px] mobile:p-[12px] mobile:static mobile:h-auto mobile:flex mobile:gap-[8px] mobile:items-center overflow-auto scrollbar scrollbar-thumb-fifth scrollbar-track-newBgColor">+ <div className="mb-[15px] mobile:mb-0 justify-center flex group-[.sidebar]:pb-[15px] mobile:shrink-0"><Linkhref={`/agents`}className="text-white whitespace-nowrap flex-1 pt-[12px] pb-[14px] ps-[16px] pe-[20px] group-[.sidebar]:p-0 min-h-[44px] max-h-[44px] rounded-md bg-btnPrimary flex justify-center items-center gap-[5px] outline-none"@@ -255,11 +261,11 @@ const Threads: FC = () => {</div></Link></div>- <div className="flex flex-col gap-[1px]">+ <div className="flex flex-col gap-[1px] mobile:flex-row mobile:gap-[4px]">{data?.threads?.map((p: any) => (<LinkclassName={clsx(- 'overflow-ellipsis overflow-hidden whitespace-nowrap hover:bg-newBgColor px-[10px] py-[6px] rounded-[10px] cursor-pointer',+ 'overflow-ellipsis overflow-hidden whitespace-nowrap hover:bg-newBgColor px-[10px] py-[6px] rounded-[10px] cursor-pointer mobile:shrink-0 mobile:max-w-[180px] mobile:border mobile:border-newTableBorder',p.id === id && 'bg-newBgColor')}href={`/agents/${p.id}`}diff --git a/apps/frontend/src/components/billing/main.billing.component.tsx b/apps/frontend/src/components/billing/main.billing.component.tsxindex 1e3d4f017..2bd804bb6 100644--- a/apps/frontend/src/components/billing/main.billing.component.tsx+++ b/apps/frontend/src/components/billing/main.billing.component.tsx@@ -137,7 +137,7 @@ export const Features: FC<{/></svg></div>- <div>{feature}</div>+ <div className="text-start">{feature}</div></div>))}</div>@@ -583,8 +583,11 @@ export const MainBillingComponent: FC<{))}</div>{!!subscription?.id && (- <div className="flex justify-center mt-[20px] gap-[10px]">- <Button onClick={updatePayment}>+ <div className="flex justify-center mt-[20px] gap-[10px] mobile:flex-col">+ <Button+ onClick={updatePayment}+ className="mobile:h-auto mobile:min-h-[40px] mobile:py-[8px] mobile:text-center"+ >{t('update_payment_method_invoices_history','Update Payment Method / Invoices History'diff --git a/apps/frontend/src/components/developer/developer.component.tsx b/apps/frontend/src/components/developer/developer.component.tsxindex 65414061f..3defb4623 100644--- a/apps/frontend/src/components/developer/developer.component.tsx+++ b/apps/frontend/src/components/developer/developer.component.tsx@@ -229,7 +229,7 @@ export const DeveloperComponent: FC = () => {)}</div><div className="bg-newBgColorInner rounded-[12px] border border-newBorder overflow-hidden">- <div className="bg-newBgColorInner px-[20px] py-[14px] border-b border-newBorder flex items-start justify-between gap-[12px]">+ <div className="bg-newBgColorInner px-[20px] mobile:px-[14px] py-[14px] border-b border-newBorder flex items-start justify-between gap-[12px] mobile:flex-col"><div><div className="text-[15px] font-[600]">{t('oauth_application', 'OAuth Application')}@@ -241,7 +241,7 @@ export const DeveloperComponent: FC = () => {)}</div></div>- <div className="flex gap-[6px] shrink-0 pt-[2px]">+ <div className="flex flex-wrap gap-[6px] shrink-0 pt-[2px]"><aclassName="cursor-pointer px-[16px] h-[36px] bg-[#612BD3] hover:bg-[#5520CB] text-white transition-colors rounded-[8px] text-[13px] font-[600] flex items-center gap-[6px]"href="https://docs.postiz.com/public-api/oauth"@@ -293,7 +293,7 @@ export const DeveloperComponent: FC = () => {)}</div></div>- <div className="p-[20px] flex flex-col gap-[16px]">+ <div className="p-[20px] mobile:p-[14px] flex flex-col gap-[16px]"><div className="flex flex-col gap-[6px]"><label className="text-[13px] font-[600] text-customColor18">{t('app_name', 'App Name')} *@@ -354,7 +354,7 @@ export const DeveloperComponent: FC = () => {placeholder="https://yourapp.com/callback"/></div>- <div className="flex gap-[8px]">+ <div className="flex flex-wrap gap-[8px]"><buttontype="button"onClick={createApp}@@ -392,7 +392,7 @@ export const DeveloperComponent: FC = () => {</div>{/* App details / edit */}<div className="bg-newBgColorInner rounded-[12px] border border-newBorder overflow-hidden">- <div className="bg-newBgColorInner px-[20px] py-[14px] border-b border-newBorder flex items-start justify-between gap-[12px]">+ <div className="bg-newBgColorInner px-[20px] mobile:px-[14px] py-[14px] border-b border-newBorder flex items-start justify-between gap-[12px] mobile:flex-col"><div><div className="text-[15px] font-[600]">{t('oauth_application', 'OAuth Application')}@@ -404,7 +404,7 @@ export const DeveloperComponent: FC = () => {)}</div></div>- <div className="flex gap-[6px] shrink-0 pt-[2px]">+ <div className="flex flex-wrap gap-[6px] shrink-0 pt-[2px]"><aclassName="cursor-pointer px-[16px] h-[36px] bg-[#612BD3] hover:bg-[#5520CB] text-white transition-colors rounded-[8px] text-[13px] font-[600] flex items-center gap-[6px]"href="https://docs.postiz.com/public-api/oauth"@@ -417,7 +417,7 @@ export const DeveloperComponent: FC = () => {</div>{editing ? (- <div className="p-[20px] flex flex-col gap-[16px]">+ <div className="p-[20px] mobile:p-[14px] flex flex-col gap-[16px]"><div className="flex flex-col gap-[6px]"><label className="text-[13px] font-[600] text-customColor18">{t('app_name', 'App Name')} *@@ -478,7 +478,7 @@ export const DeveloperComponent: FC = () => {placeholder="https://yourapp.com/callback"/></div>- <div className="flex gap-[8px]">+ <div className="flex flex-wrap gap-[8px]"><buttontype="button"onClick={updateApp}@@ -496,7 +496,7 @@ export const DeveloperComponent: FC = () => {</div></div>) : (- <div className="p-[20px] flex flex-col gap-[16px]">+ <div className="p-[20px] mobile:p-[14px] flex flex-col gap-[16px]"><div className="flex items-center gap-[12px]">{app.picture?.path ? (<img@@ -522,9 +522,9 @@ export const DeveloperComponent: FC = () => {<div className="text-[13px] font-[600] text-customColor18">{t('redirect_url', 'Redirect URL')}</div>- <div className="text-[14px]">{app.redirectUrl}</div>+ <div className="text-[14px] break-all">{app.redirectUrl}</div></div>- <div className="flex gap-[8px]">+ <div className="flex flex-wrap gap-[8px]"><buttontype="button"onClick={startEditing}@@ -545,7 +545,7 @@ export const DeveloperComponent: FC = () => {{t('credentials', 'Credentials')}</div></div>- <div className="p-[20px] flex flex-col gap-[16px]">+ <div className="p-[20px] mobile:p-[14px] flex flex-col gap-[16px]"><div className="flex flex-col gap-[6px]"><div className="text-[13px] font-[600] text-customColor18">{t('client_id', 'Client ID')}@@ -558,7 +558,7 @@ export const DeveloperComponent: FC = () => {<div className="text-[13px] font-[600] text-customColor18">{t('client_secret', 'Client Secret')}</div>- <div className="bg-newBgColorInner border border-newBorder rounded-[8px] px-[16px] h-[44px] flex items-center overflow-hidden">+ <div className="bg-newBgColorInner border border-newBorder rounded-[8px] px-[16px] h-[44px] mobile:h-auto mobile:min-h-[44px] mobile:py-[10px] flex items-center overflow-hidden">{plaintextSecret ? (<code className="text-[14px] flex-1 truncate">{plaintextSecret}@@ -573,7 +573,7 @@ export const DeveloperComponent: FC = () => {)}</div></div>- <div className="flex gap-[8px]">+ <div className="flex flex-wrap gap-[8px]"><CopyButton text={app.clientId} label={t('copy_id', 'Copy ID')} />{plaintextSecret && (<CopyButtondiff --git a/apps/frontend/src/components/launches/add.provider.component.tsx b/apps/frontend/src/components/launches/add.provider.component.tsxindex d3a620dc8..e3a2f2e54 100644--- a/apps/frontend/src/components/launches/add.provider.component.tsx+++ b/apps/frontend/src/components/launches/add.provider.component.tsx@@ -688,7 +688,7 @@ export const AddProviderComponent: FC<{className={clsx(isMobile && 'gap-[20px] flex flex-col',!isMobile &&- 'grid grid-cols-5 gap-[10px] justify-items-center justify-center',+ 'grid grid-cols-5 gap-[10px] justify-items-center justify-center mobile:!grid-cols-3',isMobile ? {} : onboarding ? 'grid-cols-9' : 'grid-cols-5')}>@@ -725,7 +725,7 @@ export const AddProviderComponent: FC<{className={clsx(isMobile? 'flex-row h-[72px] p-[16px]'- : 'flex-col p-[10px] h-[100px] justify-center',+ : 'flex-col p-[10px] h-[100px] justify-center mobile:text-[13px] mobile:leading-[1.2]','w-full text-[14px] rounded-[8px] bg-newTableHeader text-textColor relative items-center flex gap-[10px] cursor-pointer')}>diff --git a/apps/frontend/src/components/launches/calendar.context.tsx b/apps/frontend/src/components/launches/calendar.context.tsxindex fb5bea362..df65ebb1f 100644--- a/apps/frontend/src/components/launches/calendar.context.tsx+++ b/apps/frontend/src/components/launches/calendar.context.tsx@@ -145,7 +145,14 @@ export const CalendarWeekProvider: FC<{const [internalData, setInternalData] = useState([] as any[]);const [trendings] = useState<string[]>([]);const searchParams = useSearchParams();- const [displaySaved, setDisplaySaved] = useCookie('calendar-display', 'week');+ // A 7-column week doesn't fit a phone, so default small screens (tailwind `mobile`) to the day view+ const [displaySaved, setDisplaySaved] = useCookie(+ 'calendar-display',+ typeof window !== 'undefined' &&+ window.matchMedia('(max-width: 1025px)').matches+ ? 'day'+ : 'week'+ );const display = searchParams.get('display') || displaySaved;// List view statediff --git a/apps/frontend/src/components/launches/calendar.tsx b/apps/frontend/src/components/launches/calendar.tsxindex 11d82c57a..0fd2a8dff 100644--- a/apps/frontend/src/components/launches/calendar.tsx+++ b/apps/frontend/src/components/launches/calendar.tsx@@ -309,7 +309,7 @@ export const DayView = () => {<div className="absolute start-0 top-0 w-full h-full flex flex-col overflow-auto scrollbar scrollbar-thumb-fifth scrollbar-track-newBgColor">{options.map((option) => (<Fragment key={option[0].time}>- <div className="text-center text-[14px] min-h-[21px]">+ <div className="text-center text-[14px] min-h-[21px] shrink-0">{newDayjs().utc().startOf('day')@@ -319,7 +319,7 @@ export const DayView = () => {</div><divkey={option[0].time}- className="min-h-[60px] rounded-[10px] flex justify-center items-center gap-[10px] mb-[20px]"+ className="min-h-[60px] shrink-0 rounded-[10px] flex justify-center items-center gap-[10px] mb-[20px]"><CalendarContext.Providervalue={{@@ -366,7 +366,7 @@ export const WeekView = () => {return (<div className="flex flex-col text-textColor flex-1"><div className="flex-1 relative">- <div className="grid [grid-template-columns:136px_repeat(7,_minmax(0,_1fr))] gap-[4px] rounded-[10px] absolute h-full start-0 top-0 w-full overflow-auto scrollbar scrollbar-thumb-fifth scrollbar-track-newBgColor">+ <div className="grid [grid-template-columns:136px_repeat(7,_minmax(0,_1fr))] tablet:[grid-template-columns:72px_repeat(7,_minmax(100px,_1fr))] gap-[4px] rounded-[10px] absolute h-full start-0 top-0 w-full overflow-auto scrollbar scrollbar-thumb-fifth scrollbar-track-newBgColor"><div className="z-10 bg-newTableHeader flex justify-center items-center flex-col h-[62px] rounded-[8px] sticky top-0"></div>{localizedDays.map((day, index) => (<div@@ -392,7 +392,7 @@ export const WeekView = () => {))}{hours.map((hour) => (<Fragment key={hour}>- <div className="p-2 pe-4 text-center items-center justify-center flex text-[14px] text-newTableText">+ <div className="p-2 pe-4 tablet:px-[4px] text-center items-center justify-center flex text-[14px] tablet:text-[12px] tablet:whitespace-nowrap text-newTableText">{convertTimeFormatBasedOnLocality(hour)}</div>{localizedDays.map((day, indexDay) => (@@ -465,7 +465,7 @@ export const MonthView = () => {return (<div className="flex flex-col text-textColor flex-1"><div className="flex-1 flex relative">- <div className="grid grid-cols-7 grid-rows-[62px_auto] gap-[4px] rounded-[10px] absolute start-0 top-0 overflow-auto w-full h-full scrollbar scrollbar-thumb-tableBorder scrollbar-track-secondary">+ <div className="grid grid-cols-7 tablet:[grid-template-columns:repeat(7,_minmax(100px,_1fr))] grid-rows-[62px_auto] gap-[4px] rounded-[10px] absolute start-0 top-0 overflow-auto w-full h-full scrollbar scrollbar-thumb-tableBorder scrollbar-track-secondary">{localizedDays.map((day) => (<divkey={day}@@ -941,7 +941,7 @@ export const CalendarColumn: FC<{)}{display === 'day' && (<div- className={`w-full h-full rounded-[10px] py-[10px] flex-wrap hover:border hover:border-seventh flex justify-center items-center gap-[20px] opacity-30 grayscale hover:grayscale-0 hover:opacity-100`}+ className={`w-full h-full rounded-[10px] py-[10px] flex-wrap hover:border hover:border-seventh flex justify-center items-center gap-[20px] mobile:gap-[12px] opacity-30 grayscale hover:grayscale-0 hover:opacity-100`}>{integrations.map((selectedIntegrations) => (<divdiff --git a/apps/frontend/src/components/launches/filters.tsx b/apps/frontend/src/components/launches/filters.tsxindex 5fd690f60..e0cf58ab7 100644--- a/apps/frontend/src/components/launches/filters.tsx+++ b/apps/frontend/src/components/launches/filters.tsx@@ -287,7 +287,7 @@ export const Filters = () => {}, [calendar]);return (- <div className="text-textColor flex flex-col md:flex-row gap-[8px] items-center select-none">+ <div className="text-textColor flex flex-row flex-wrap gap-[8px] items-center select-none">{!isListView && (<div className="flex flex-grow flex-row items-center gap-[10px]"><div className="border h-[42px] border-newTableBorder bg-newTableBorder gap-[1px] flex items-center rounded-[8px] overflow-hidden">@@ -311,7 +311,7 @@ export const Filters = () => {/></svg></div>- <div className="min-w-[200px] text-center bg-newBgColorInner h-full flex items-center justify-center">+ <div className="min-w-[200px] mobile:min-w-[160px] text-center bg-newBgColorInner h-full flex items-center justify-center"><div className="py-[3px] px-[9px] rounded-[5px] transition-all text-[14px]">{getDisplayText()}</div>@@ -350,7 +350,7 @@ export const Filters = () => {</div>)}{isListView && (- <div className="flex flex-grow flex-row items-center gap-[10px]">+ <div className="flex flex-grow flex-row items-center gap-[10px] mobile:flex-wrap"><div className="border h-[42px] border-newTableBorder bg-newTableBorder gap-[1px] flex items-center rounded-[8px] overflow-hidden"><divonClick={previousPage}@@ -377,7 +377,7 @@ export const Filters = () => {/></svg></div>- <div className="min-w-[200px] text-center bg-newBgColorInner h-full flex items-center justify-center">+ <div className="min-w-[200px] mobile:min-w-[160px] text-center bg-newBgColorInner h-full flex items-center justify-center"><div className="py-[3px] px-[9px] rounded-[5px] transition-all text-[14px]">{t('page', 'Page')} {calendar.listPage + 1} {t('of', 'of')} {Math.max(1, calendar.listTotalPages)}</div>@@ -408,7 +408,7 @@ export const Filters = () => {</svg></div></div>- <div className="flex flex-row p-[4px] border border-newTableBorder rounded-[8px] text-[14px] font-[500]">+ <div className="flex flex-row p-[4px] border border-newTableBorder rounded-[8px] text-[14px] font-[500] mobile:max-w-full mobile:overflow-x-auto">{listStateOptions.map((option) => (<divkey={option.value}@@ -435,7 +435,7 @@ export const Filters = () => {<div className="flex flex-row p-[4px] border border-newTableBorder rounded-[8px] text-[14px] font-[500]"><divclassName={clsx(- 'pt-[6px] pb-[5px] cursor-pointer w-[74px] text-center rounded-[6px]',+ 'pt-[6px] pb-[5px] cursor-pointer w-[74px] mobile:w-[62px] text-center rounded-[6px]',calendar.display === 'day' && 'text-textItemFocused bg-boxFocused')}onClick={setDay}@@ -444,7 +444,7 @@ export const Filters = () => {</div><divclassName={clsx(- 'pt-[6px] pb-[5px] cursor-pointer w-[74px] text-center rounded-[6px]',+ 'pt-[6px] pb-[5px] cursor-pointer w-[74px] mobile:w-[62px] text-center rounded-[6px]',calendar.display === 'week' && 'text-textItemFocused bg-boxFocused')}onClick={setWeek}@@ -453,7 +453,7 @@ export const Filters = () => {</div><divclassName={clsx(- 'pt-[6px] pb-[5px] cursor-pointer w-[74px] text-center rounded-[6px]',+ 'pt-[6px] pb-[5px] cursor-pointer w-[74px] mobile:w-[62px] text-center rounded-[6px]',calendar.display === 'month' && 'text-textItemFocused bg-boxFocused')}onClick={setMonth}diff --git a/apps/frontend/src/components/launches/helpers/date.picker.tsx b/apps/frontend/src/components/launches/helpers/date.picker.tsxindex 585f8e91b..3b0eda8ac 100644--- a/apps/frontend/src/components/launches/helpers/date.picker.tsx+++ b/apps/frontend/src/components/launches/helpers/date.picker.tsx@@ -35,7 +35,7 @@ export const DatePicker: FC<{);return (<div- className="px-[16px] border border-newTextColor/10 rounded-[8px] justify-center flex gap-[8px] items-center relative h-[44px] text-[15px] font-[600] ml-[7px] select-none flex-1"+ className="px-[16px] border border-newTextColor/10 rounded-[8px] justify-center flex gap-[8px] items-center relative h-[44px] text-[15px] mobile:text-[14px] whitespace-nowrap font-[600] ml-[7px] mobile:ml-0 select-none flex-1"onClick={changeShow}ref={ref}>@@ -48,7 +48,7 @@ export const DatePicker: FC<{{open && (<divonClick={(e) => e.stopPropagation()}- className="animate-fadeIn absolute bottom-[100%] mb-[16px] start-[50%] -translate-x-[50%] bg-sixth border border-tableBorder text-textColor rounded-[16px] z-[300] p-[16px] flex flex-col"+ className="animate-fadeIn absolute bottom-[100%] mb-[16px] start-[50%] -translate-x-[50%] mobile:start-0 mobile:translate-x-0 bg-sixth border border-tableBorder text-textColor rounded-[16px] z-[300] p-[16px] flex flex-col"><CalendaronChange={changeDate('date')}diff --git a/apps/frontend/src/components/launches/launches.component.tsx b/apps/frontend/src/components/launches/launches.component.tsxindex 03be0815d..838bff830 100644--- a/apps/frontend/src/components/launches/launches.component.tsx+++ b/apps/frontend/src/components/launches/launches.component.tsx@@ -467,6 +467,7 @@ export const LaunchesComponent = () => {const modal = useModals();const [reload, setReload] = useState(false);const [collapseMenu, setCollapseMenu] = useCookie('collapseMenu', '0');+ const [channelsOpen, setChannelsOpen] = useState(false);const [mode] = useCookie('mode', 'dark');const { isLoading, data: integrations, mutate } = useIntegrationList();@@ -626,26 +627,56 @@ export const LaunchesComponent = () => {<DNDProvider><Onboarding /><CalendarWeekProvider integrations={sortedIntegrations}>+ {channelsOpen && (+ <div+ className="hidden mobile:block fixed inset-0 bg-newBackdrop opacity-60 z-[149]"+ onClick={() => setChannelsOpen(false)}+ />+ )}<divclassName={clsx('flex relative flex-col',- collapseMenu === '1' ? 'group sidebar w-[100px]' : 'w-[260px]'+ collapseMenu === '1' && !channelsOpen+ ? 'group sidebar w-[100px]'+ : 'w-[260px]',+ channelsOpen+ ? 'mobile:fixed mobile:inset-x-0 mobile:bottom-0 mobile:z-[150] mobile:w-full mobile:max-h-[80vh] mobile:rounded-t-[16px] mobile:overflow-hidden'+ : 'mobile:hidden')}><divclassName={clsx(- 'bg-newBgColorInner p-[20px] flex flex-col gap-[15px] transition-all absolute start-0 top-0 w-full h-full overflow-x-hidden overflow-y-auto scrollbar scrollbar-thumb-fifth scrollbar-track-newBgColor'+ 'bg-newBgColorInner p-[20px] flex flex-col gap-[15px] transition-all absolute start-0 top-0 w-full h-full mobile:static mobile:h-auto mobile:max-h-[80vh] mobile:pb-[80px] overflow-x-hidden overflow-y-auto scrollbar scrollbar-thumb-fifth scrollbar-track-newBgColor')}><div className="flex items-center"><h2 className="group-[.sidebar]:hidden flex-1 text-[20px] font-[500]">{t('channels')}</h2>+ <div+ onClick={() => setChannelsOpen(false)}+ className="hidden mobile:flex text-btnText bg-btnSimple rounded-[6px] w-[28px] h-[28px] items-center justify-center cursor-pointer select-none"+ >+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="12"+ height="12"+ viewBox="0 0 12 12"+ fill="none"+ >+ <path+ d="M1 1L11 11M11 1L1 11"+ stroke="currentColor"+ strokeWidth="1.5"+ strokeLinecap="round"+ />+ </svg>+ </div><divonClick={() =>setCollapseMenu(collapseMenu === '1' ? '0' : '1')}- className="group-[.sidebar]:rotate-[180deg] group-[.sidebar]:mx-auto text-btnText bg-btnSimple rounded-[6px] w-[24px] h-[24px] flex items-center justify-center cursor-pointer select-none"+ className="group-[.sidebar]:rotate-[180deg] group-[.sidebar]:mx-auto mobile:hidden text-btnText bg-btnSimple rounded-[6px] w-[24px] h-[24px] flex items-center justify-center cursor-pointer select-none"><svgxmlns="http://www.w3.org/2000/svg"@@ -666,7 +697,7 @@ export const LaunchesComponent = () => {</div><div className="flex flex-col gap-[8px] group-[.sidebar]:mx-auto group-[.sidebar]:w-[44px]"><AddProviderButton update={() => update(true)} />- <div className="flex gap-[8px] group-[.sidebar]:flex-col">+ <div className="flex gap-[8px] group-[.sidebar]:flex-col mobile:hidden">{sortedIntegrations?.length > 0 && <NewPost />}{sortedIntegrations?.length > 0 &&user?.tier?.ai &&@@ -674,30 +705,31 @@ export const LaunchesComponent = () => {</div></div><div className="gap-[32px] flex flex-col select-none flex-1">- {sortedIntegrations.length === 0 && collapseMenu === '0' && (- <div className="flex-1 max-h-[500px] justify-center items-center flex">- <div className="flex flex-col gap-[12px] text-center">- <img- src={- mode === 'dark'- ? '/no-channels.svg'- : '/no-channels-colors.svg'- }- alt="No channels"- className="mx-auto min-w-[100%]"- />- <div className="font-[600] text-[20px]">- {t('no_channels', 'No channels yet')}- </div>- <div className="text-[14px]">- {t('connect_your_accounts')}+ {sortedIntegrations.length === 0 &&+ (collapseMenu === '0' || channelsOpen) && (+ <div className="flex-1 max-h-[500px] justify-center items-center flex">+ <div className="flex flex-col gap-[12px] text-center">+ <img+ src={+ mode === 'dark'+ ? '/no-channels.svg'+ : '/no-channels-colors.svg'+ }+ alt="No channels"+ className="mx-auto min-w-[100%]"+ />+ <div className="font-[600] text-[20px]">+ {t('no_channels', 'No channels yet')}+ </div>+ <div className="text-[14px]">+ {t('connect_your_accounts')}+ </div></div></div>- </div>- )}+ )}{menuIntegrations.map((menu) => (<MenuGroupComponent- collapsed={collapseMenu === '1'}+ collapsed={collapseMenu === '1' && !channelsOpen}changeItemGroup={changeItemGroup}key={menu.name}group={menu}@@ -709,7 +741,7 @@ export const LaunchesComponent = () => {/>))}</div>- <div className="mt-[5px] text-center flex flex-col">+ <div className="mt-[5px] text-center flex flex-col mobile:hidden">{billingEnabled && user?.isLifetime && (<div>{capitalize(user?.tier?.current || '')} tier</div>)}@@ -721,7 +753,40 @@ export const LaunchesComponent = () => {</div></div></div>- <div className="bg-newBgColorInner flex-1 flex-col flex p-[20px] gap-[12px]">+ <div className="bg-newBgColorInner flex-1 min-w-0 flex-col flex p-[20px] mobile:p-[12px] gap-[12px] mobile:min-h-[600px]">+ <div className="hidden mobile:flex gap-[8px]">+ <div+ onClick={() => setChannelsOpen(true)}+ className="cursor-pointer h-[44px] px-[12px] bg-btnSimple text-btnText rounded-[8px] flex items-center gap-[8px] select-none"+ >+ <div className="flex -space-x-[10px] rtl:space-x-reverse">+ {sortedIntegrations.slice(0, 3).map((integration: any) => (+ <ImageWithFallback+ key={integration.id}+ fallbackSrc={`/icons/platforms/${integration.identifier}.png`}+ src={integration.picture}+ className="rounded-full border-2 border-btnSimple"+ alt={integration.identifier}+ width={24}+ height={24}+ />+ ))}+ </div>+ <div className="text-[14px] font-[500]">+ {sortedIntegrations.length || t('channels')}+ </div>+ </div>+ {sortedIntegrations?.length > 0 ? (+ <>+ <NewPost />+ {user?.tier?.ai && billingEnabled && <GeneratorComponent />}+ </>+ ) : (+ <div className="flex-1">+ <AddProviderButton update={() => update(true)} />+ </div>+ )}+ </div><Filters /><div className="flex-1 flex"><Calendar />diff --git a/apps/frontend/src/components/launches/menu/menu.tsx b/apps/frontend/src/components/launches/menu/menu.tsxindex 053d27665..7859ce00f 100644--- a/apps/frontend/src/components/launches/menu/menu.tsx+++ b/apps/frontend/src/components/launches/menu/menu.tsx@@ -76,6 +76,7 @@ export const Menu: FC<{if (show && menuRef.current) {const menuRect = menuRef.current.getBoundingClientRect();const viewportHeight = window.innerHeight;+ const viewportWidth = window.innerWidth;const padding = 10;// Check if menu overflows bottom of viewport@@ -89,6 +90,14 @@ export const Menu: FC<{setShow((prev) => (prev ? { ...prev, y: newY } : false));}}++ // Check if menu overflows right of viewport (small screens)+ if (menuRect.right > viewportWidth - padding) {+ const newX = Math.max(padding, viewportWidth - menuRect.width - padding);+ if (Math.abs(show.x - newX) > 1) {+ setShow((prev) => (prev ? { ...prev, x: newX } : false));+ }+ }}}, [show]);const findIntegration: any = useMemo(() => {diff --git a/apps/frontend/src/components/layout/impersonate.tsx b/apps/frontend/src/components/layout/impersonate.tsxindex 215a40e92..39869b604 100644--- a/apps/frontend/src/components/layout/impersonate.tsx+++ b/apps/frontend/src/components/layout/impersonate.tsx@@ -1073,15 +1073,15 @@ export const Impersonate = () => {}, [data]);return (<div>- <div className="bg-forth h-[52px] flex justify-center items-center border-input border rounded-[8px] text-white">+ <div className="bg-forth h-[52px] mobile:h-auto mobile:py-[8px] mobile:px-[8px] flex justify-center items-center border-input border rounded-[8px] text-white"><divclassName={`relative flex flex-col ${- user?.impersonate ? 'w-full px-[20px]' : 'w-[600px]'+ user?.impersonate ? 'w-full px-[20px] mobile:px-0' : 'w-[600px] mobile:w-full'}`}><div className="relative z-[1]">{user?.impersonate ? (- <div className="text-center flex justify-center items-center gap-[10px]">+ <div className="text-center flex justify-center items-center gap-[10px] mobile:flex-wrap"><div className="whitespace-nowrap">{t('currently_impersonating', 'Currently Impersonating')}</div>@@ -1099,8 +1099,8 @@ export const Impersonate = () => {<SwitchUser /></div>) : (- <div className="flex items-center gap-[10px]">- <div className="flex-1">+ <div className="flex items-center gap-[10px] mobile:flex-wrap">+ <div className="flex-1 mobile:basis-full"><InputautoComplete="off"placeholder="Write the user details"diff --git a/apps/frontend/src/components/layout/new-modal.tsx b/apps/frontend/src/components/layout/new-modal.tsxindex d59bf0ff7..53a210f3a 100644--- a/apps/frontend/src/components/layout/new-modal.tsx+++ b/apps/frontend/src/components/layout/new-modal.tsx@@ -136,22 +136,29 @@ export const Component: FC<{className={clsx(!modal.fullScreen? 'pb-[50px] min-w-full min-h-full'- : 'w-full h-full',+ : 'w-full h-full mobile:block','fixed flex left-0 top-0 bg-popup transition-all animate-fadeIn overflow-y-auto text-newTextColor',!isLast && '!overflow-hidden')}>- <div className={clsx(modal.fullScreen && 'flex', 'relative flex-1')}>+ <div+ className={clsx(+ modal.fullScreen && 'flex mobile:min-h-full',+ 'relative flex-1 mobile:min-w-0'+ )}+ ><divclassName={clsx(modal.fullScreen- ? 'flex flex-1'+ ? 'flex flex-1 mobile:min-w-0': 'absolute top-0 left-0 min-w-full min-h-full')}><divclassName={clsx(- modal.fullScreen ? 'w-full h-full flex-1' : 'mx-auto py-[48px]'+ modal.fullScreen+ ? 'w-full h-full flex-1 mobile:min-w-0 mobile:h-auto'+ : 'mx-auto py-[48px] mobile:max-w-[100vw] mobile:py-[16px]')}{...(modal.size && { style: { width: modal.size } })}>@@ -183,11 +190,11 @@ export const Component: FC<{: {}}className={clsx(- 'absolute min-w-full',+ 'absolute min-w-full mobile:w-full',!modal.fullScreen? modal.top? ''- : 'min-h-full pt-[100px] pb-[100px]'+ : 'min-h-full pt-[100px] pb-[100px] mobile:pt-[24px] mobile:pb-[24px] mobile:px-[8px]': 'h-screen',modal.size && modal.height? 'flex justify-center items-center'@@ -196,9 +203,10 @@ export const Component: FC<{><divclassName={clsx(- !modal.removeLayout && 'gap-[40px] p-[32px]',- 'bg-newBgColorInner mx-auto flex flex-col w-fit rounded-[24px] relative',- modal.size ? '' : 'min-w-[600px]',+ !modal.removeLayout &&+ 'gap-[40px] p-[32px] mobile:gap-[24px] mobile:p-[16px]',+ 'bg-newBgColorInner mx-auto flex flex-col w-fit rounded-[24px] mobile:rounded-[16px] relative mobile:!max-w-full',+ modal.size ? '' : 'min-w-[600px] mobile:min-w-0 mobile:w-full',modal.fullScreen && 'h-full')}{...((!!modal.size || !!modal.height || !!modal.maxSize) && {@@ -211,14 +219,14 @@ export const Component: FC<{onClick={(e) => e.stopPropagation()}><div className="flex items-center">- <div className="text-[24px] font-[600] flex-1">+ <div className="text-[24px] mobile:text-[20px] mobile:pe-[28px] font-[600] flex-1">{modal.title}</div>{typeof modal.withCloseButton === 'undefined' ||modal.withCloseButton ? (<div className="cursor-pointer"><button- className="outline-none absolute end-[20px] top-[20px] mantine-UnstyledButton-root mantine-ActionIcon-root hover:bg-tableBorder cursor-pointer mantine-Modal-close mantine-1dcetaa"+ className="outline-none absolute end-[20px] top-[20px] mobile:end-[12px] mobile:top-[12px] mantine-UnstyledButton-root mantine-ActionIcon-root hover:bg-tableBorder cursor-pointer mantine-Modal-close mantine-1dcetaa"type="button"onClick={closeModalFunction}>diff --git a/apps/frontend/src/components/layout/organization.selector.tsx b/apps/frontend/src/components/layout/organization.selector.tsxindex 4f072f593..a5638732c 100644--- a/apps/frontend/src/components/layout/organization.selector.tsx+++ b/apps/frontend/src/components/layout/organization.selector.tsx@@ -64,7 +64,7 @@ export const OrganizationSelector: FC<{ asOpenSelect?: boolean }> = ({/></svg>{!!current?.name && (- <div className="max-w-[240px] truncate">{current?.name}</div>+ <div className="max-w-[240px] truncate mobile:hidden">{current?.name}</div>)}</div>)}@@ -106,7 +106,7 @@ export const OrganizationSelector: FC<{ asOpenSelect?: boolean }> = ({)}</div></div>- {!asOpenSelect && <div className="w-[1px] h-[20px] bg-blockSeparator" />}+ {!asOpenSelect && <div className="w-[1px] h-[20px] bg-blockSeparator mobile:hidden" />}</>);};diff --git a/apps/frontend/src/components/layout/settings.component.tsx b/apps/frontend/src/components/layout/settings.component.tsxindex 7e2584540..2f427d5b3 100644--- a/apps/frontend/src/components/layout/settings.component.tsx+++ b/apps/frontend/src/components/layout/settings.component.tsx@@ -117,20 +117,20 @@ export const SettingsPopup: FC<{return (<>- <div className="bg-newBgColorInner p-[20px] flex flex-col transition-all w-[260px]">- <div className="flex flex-1 flex-col gap-[15px]">+ <div className="bg-newBgColorInner p-[20px] mobile:p-[12px] flex flex-col transition-all w-[260px] mobile:w-full">+ <div className="flex flex-1 flex-col gap-[15px] mobile:flex-row mobile:gap-[8px] mobile:overflow-x-auto mobile:pb-[6px] scrollbar scrollbar-thumb-fifth scrollbar-track-newBgColor">{list.map(({ tab: tabKey, label }) => (<divkey={tabKey}className={clsx(- 'cursor-pointer flex items-center gap-[12px] group/profile hover:bg-boxHover rounded-e-[8px]',+ 'cursor-pointer flex items-center gap-[12px] group/profile hover:bg-boxHover rounded-e-[8px] mobile:shrink-0 mobile:whitespace-nowrap mobile:rounded-[8px] mobile:px-[12px] mobile:py-[8px]',tabKey === tab && 'bg-boxHover')}onClick={() => setTab(tabKey)}><divclassName={clsx(- 'h-full w-[4px] rounded-s-[3px] opacity-0 group-hover/profile:opacity-100 transition-opacity',+ 'h-full w-[4px] rounded-s-[3px] opacity-0 group-hover/profile:opacity-100 transition-opacity mobile:hidden',tabKey === tab && 'opacity-100')}>@@ -142,13 +142,13 @@ export const SettingsPopup: FC<{</div><div>{showLogout && (- <div className="mt-4">+ <div className="mt-4 mobile:mt-[8px]"><LogoutComponent /></div>)}</div></div>- <div className="bg-newBgColorInner flex-1 flex-col flex p-[20px] gap-[12px]">+ <div className="bg-newBgColorInner flex-1 min-w-0 flex-col flex p-[20px] mobile:p-[12px] gap-[12px]"><FormProvider {...form}><form onSubmit={form.handleSubmit(submit)}>{!!getRef && (diff --git a/apps/frontend/src/components/layout/title.tsx b/apps/frontend/src/components/layout/title.tsxindex 5fa3099a6..f071a4093 100644--- a/apps/frontend/src/components/layout/title.tsx+++ b/apps/frontend/src/components/layout/title.tsx@@ -10,5 +10,5 @@ export const Title = () => {return menuItems.find((item) => path.indexOf(item.path) > -1)?.name;}, [path]);- return <h1>{currentTitle}</h1>;+ return <h1 className="truncate">{currentTitle}</h1>;};diff --git a/apps/frontend/src/components/media/media.component.tsx b/apps/frontend/src/components/media/media.component.tsxindex 901e9e540..4eadb0e84 100644--- a/apps/frontend/src/components/media/media.component.tsx+++ b/apps/frontend/src/components/media/media.component.tsx@@ -119,7 +119,7 @@ export const Pagination: FC<{}, [current, totalPages]);return (- <ul className="flex flex-row items-center gap-1 justify-center mt-[15px]">+ <ul className="flex flex-row flex-wrap items-center gap-1 justify-center mt-[15px]"><li className={clsx(current === 0 && 'opacity-20 pointer-events-none')}><divclassName="cursor-pointer inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 h-10 px-4 py-2 gap-1 ps-2.5 text-gray-400 hover:text-white border-[#1F1F1F] hover:bg-forth"@@ -127,7 +127,7 @@ export const Pagination: FC<{onClick={() => setPage(current - 1)}><ChevronLeftIcon className="lucide lucide-chevron-left h-4 w-4" />- <span>{t('previous', 'Previous')}</span>+ <span className="mobile:hidden">{t('previous', 'Previous')}</span></div></li>{paginationItems.map((item, index) => (@@ -162,7 +162,7 @@ export const Pagination: FC<{aria-label="Go to next page"onClick={() => setPage(current + 1)}>- <span>{t('next', 'Next')}</span>+ <span className="mobile:hidden">{t('next', 'Next')}</span><ChevronRightIcon className="lucide lucide-chevron-right h-4 w-4" /></a></li>@@ -420,14 +420,14 @@ export const MediaBox: FC<{<div className="flex flex-col flex-1"><divclassName={clsx(- 'flex items-center gap-[12px]',+ 'flex items-center gap-[12px] mobile:flex-wrap',!isLoading &&!data?.results?.length &&!debouncedSearch &&'hidden')}>- <div className="flex-1">+ <div className="flex-1 mobile:basis-full"><inputtype="text"value={search}@@ -516,7 +516,7 @@ export const MediaBox: FC<{{[...new Array(16)].map((_, i) => (<divclassName={clsx(- 'px-[3px] py-[3px] float-left rounded-[6px] cursor-pointer w8-max aspect-square'+ 'px-[3px] py-[3px] float-left rounded-[6px] cursor-pointer w8-max mobile:!w-1/3 mobile:!max-w-[33.333%] aspect-square')}key={i}>@@ -537,7 +537,7 @@ export const MediaBox: FC<{.map((media: any) => (<divclassName={clsx(- 'group px-[3px] py-[3px] float-left rounded-[6px] w8-max aspect-square',+ 'group px-[3px] py-[3px] float-left rounded-[6px] w8-max mobile:!w-1/3 mobile:!max-w-[33.333%] aspect-square',!standalone && 'cursor-pointer')}key={media.id}@@ -561,7 +561,9 @@ export const MediaBox: FC<{onClick={deleteImage(media)}/>)}- <div className="absolute bottom-[10px] end-[10px] z-[100]">{media.originalName}</div>+ <div className="absolute bottom-[10px] start-[10px] end-[10px] z-[100] truncate text-end mobile:text-[12px]">+ {media.originalName}+ </div><div className="w-full h-full rounded-[6px] overflow-hidden relative"><div className="absolute z-[20] left-[50%] top-[50%] -translate-x-[50%] -translate-y-[50%]"><div@@ -825,9 +827,9 @@ export const MultiMediaComponent: FC<{</ReactSortable>)}</div>- <div className="flex gap-[8px] px-[12px] border-t border-newColColor w-full b1 text-textColor">+ <div className="flex gap-[8px] mobile:gap-x-[4px] mobile:gap-y-0 mobile:flex-wrap px-[12px] border-t border-newColColor w-full b1 text-textColor">{!mediaNotAvailable && (- <div className="flex py-[10px] b2 items-center gap-[4px]">+ <div className="flex py-[10px] mobile:pb-0 b2 items-center gap-[4px] mobile:flex-wrap"><divonClick={showModal}className="cursor-pointer h-[30px] rounded-[6px] justify-center items-center flex bg-newColColor px-[8px]"@@ -866,7 +868,7 @@ export const MultiMediaComponent: FC<{</div>)}{!mediaNotAvailable && (- <div className="text-newColColor h-full flex items-center">+ <div className="text-newColColor h-full flex items-center mobile:hidden"><VerticalDividerIcon /></div>)}diff --git a/apps/frontend/src/components/new-launch/editor.tsx b/apps/frontend/src/components/new-launch/editor.tsxindex 0ded20eff..83214e2a0 100644--- a/apps/frontend/src/components/new-launch/editor.tsx+++ b/apps/frontend/src/components/new-launch/editor.tsx@@ -360,7 +360,7 @@ export const EditorWrapper: FC<{return (<divclassName={clsx(- 'relative flex-col gap-[20px] flex-1',+ 'relative flex-col gap-[20px] flex-1 min-w-0',(items.length === 1 || !canEdit || !comments) && 'flex',((!canEdit && !isCreateSet) || !comments) &&'bg-newSettings rounded-[12px]'@@ -426,8 +426,8 @@ export const EditorWrapper: FC<{((!canEdit && index > 0) || (!comments && index > 0)) && 'hidden')}>- <div className="flex gap-[5px] flex-1 w-full">- <div className="flex-1 flex w-full">+ <div className="flex gap-[5px] flex-1 w-full min-w-0">+ <div className="flex-1 flex w-full min-w-0">{index > 0 && (<div className="flex justify-center pl-[12px] text-newSep"><ConnectionLineIcon />@@ -694,7 +694,7 @@ export const Editor: FC<{}return (- <div className="flex flex-col gap-[20px] flex-1">+ <div className="flex flex-col gap-[20px] flex-1 min-w-0"><divclassName={clsx('relative flex-1 px-[12px] pt-[12px] pb-[12px] flex flex-col',@@ -775,7 +775,7 @@ export const Editor: FC<{/>}toolBar={- <div className="flex gap-[5px]">+ <div className="flex gap-[5px] mobile:flex-wrap"><SignatureBox editor={editorRef?.current?.editor} />{editorType !== 'none' && (<>diff --git a/apps/frontend/src/components/new-launch/manage.modal.tsx b/apps/frontend/src/components/new-launch/manage.modal.tsxindex ef639def0..9ef635dad 100644--- a/apps/frontend/src/components/new-launch/manage.modal.tsx+++ b/apps/frontend/src/components/new-launch/manage.modal.tsx@@ -43,6 +43,7 @@ import { useHasScroll } from '@gitroom/frontend/components/ui/is.scroll.hook';import { useShortlinkPreference } from '@gitroom/frontend/components/settings/shortlink-preference.component';import dayjs from 'dayjs';import { Button } from '@gitroom/react/form/button';+import { useClickOutside } from '@mantine/hooks';export const ManageModal: FC<AddEditModalProps> = (props) => {const t = useT();@@ -53,6 +54,11 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {const toaster = useToaster();const modal = useModals();const [showSettings, setShowSettings] = useState(false);+ const [mobileTab, setMobileTab] = useState<'edit' | 'preview'>('edit');+ const [showPostNow, setShowPostNow] = useState(false);+ const postNowRef = useClickOutside<HTMLDivElement>(() => {+ setShowPostNow(false);+ });const { data: shortlinkPreferenceData } = useShortlinkPreference();const { addEditSets, mutate, customClose, dummy } = props;@@ -483,24 +489,48 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {);return (- <div className="w-full h-full flex-1 p-[40px] flex relative">- <div className="flex flex-1 bg-newBgColorInner rounded-[20px] flex-col">- <div className="flex-1 flex">- <div className="flex flex-col flex-1 border-e border-newBorder">- <div className="bg-newBgColor h-[65px] rounded-s-[20px] !rounded-b-[0] flex items-center gap-[12px] px-[20px] text-[20px] font-[600]">+ <div className="w-full h-full flex-1 p-[40px] mobile:p-0 mobile:h-auto mobile:min-h-full flex relative">+ <div className="flex flex-1 min-w-0 bg-newBgColorInner rounded-[20px] mobile:rounded-none flex-col">+ <div className="flex-1 flex mobile:contents">+ <div className="flex flex-col flex-1 min-w-0 border-e border-newBorder mobile:border-e-0 mobile:flex-none">+ <div className="bg-newBgColor h-[65px] rounded-s-[20px] !rounded-b-[0] mobile:rounded-none flex items-center gap-[12px] px-[20px] mobile:px-[16px] text-[20px] font-[600]">{t('create_post_title', 'Create Post')}<CreationMethodBadgecreationMethod={existingData?.posts?.[0]?.creationMethod}size="sm"/>+ <div className="hidden mobile:block ms-auto cursor-pointer">+ <CloseIcon onClick={askClose} className="text-[#A3A3A3]" />+ </div>+ </div>+ <div className="hidden mobile:flex mx-[12px] mt-[12px] p-[4px] border border-newTableBorder rounded-[8px] text-[14px] font-[500]">+ {(['edit', 'preview'] as const).map((tab) => (+ <div+ key={tab}+ onClick={() => setMobileTab(tab)}+ className={clsx(+ 'flex-1 pt-[6px] pb-[5px] cursor-pointer text-center rounded-[6px]',+ mobileTab === tab && 'text-textItemFocused bg-boxFocused'+ )}+ >+ {tab === 'edit'+ ? t('edit', 'Edit')+ : t('post_preview', 'Post Preview')}+ </div>+ ))}</div>- <div className="flex-1 flex flex-col gap-[16px]">+ <div+ className={clsx(+ 'flex-1 flex flex-col gap-[16px]',+ mobileTab === 'preview' && 'mobile:hidden'+ )}+ ><divclassName={clsx('flex-1 relative', showSettings && 'hidden')}><divid="social-content"- className="gap-[32px] flex flex-col pe-[8px] pt-[20px] ps-[20px] absolute top-0 left-0 w-full h-full overflow-x-hidden overflow-y-scroll scrollbar scrollbar-thumb-newColColor scrollbar-track-newBgColorInner"+ className="gap-[32px] flex flex-col pe-[8px] pt-[20px] ps-[20px] mobile:px-[12px] mobile:static absolute top-0 left-0 w-full h-full mobile:h-auto overflow-x-hidden overflow-y-scroll mobile:overflow-y-visible scrollbar scrollbar-thumb-newColColor scrollbar-track-newBgColorInner"><div className="flex w-full"><div className="flex flex-1">@@ -533,7 +563,7 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {<divid="wrapper-settings"className={clsx(- 'pb-[20px] px-[20px] select-none',+ 'pb-[20px] px-[20px] mobile:px-[12px] select-none',showSettings && 'flex-1 flex pt-[20px]',current === 'global' && 'hidden')}@@ -562,7 +592,7 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {'text-[14px] text-textColor font-[500] relative')}>- <div className="absolute left-0 top-0 w-full h-full flex flex-col overflow-x-hidden overflow-y-auto scrollbar scrollbar-thumb-newBgColorInner scrollbar-track-newColColor">+ <div className="absolute mobile:static left-0 top-0 w-full h-full mobile:h-auto flex flex-col overflow-x-hidden overflow-y-auto scrollbar scrollbar-thumb-newBgColorInner scrollbar-track-newColColor"><divid="social-settings"className="flex flex-col gap-[20px] bg-newBgColor"@@ -576,25 +606,35 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {</div></div></div>- <div className="w-[580px] flex flex-col">- <div className="bg-newBgColor h-[65px] rounded-e-[20px] !rounded-b-[0] flex items-center px-[20px] text-[20px] font-[600]">+ <div+ className={clsx(+ 'w-[580px] tablet:w-[440px] mobile:!w-full flex flex-col mobile:order-3 mobile:flex-1',+ mobileTab === 'edit' && 'mobile:hidden'+ )}+ >+ <div className="bg-newBgColor h-[65px] rounded-e-[20px] !rounded-b-[0] mobile:hidden flex items-center px-[20px] text-[20px] font-[600]"><div className="flex-1">{t('post_preview', 'Post Preview')}</div>- <div className="cursor-pointer">+ <div className="cursor-pointer mobile:hidden"><CloseIcon onClick={askClose} className="text-[#A3A3A3]" /></div></div><div className="flex-1 relative"><ScrollablescrollClasses="!pe-[20px]"- className="absolute top-0 p-[20px] pe-[8px] left-0 w-full h-full overflow-x-hidden overflow-y-scroll scrollbar scrollbar-thumb-newColColor scrollbar-track-newBgColorInner"+ className="absolute mobile:static top-0 p-[20px] pe-[8px] mobile:p-[12px] left-0 w-full h-full mobile:h-auto overflow-x-hidden overflow-y-scroll mobile:overflow-y-visible scrollbar scrollbar-thumb-newColColor scrollbar-track-newBgColorInner"><ShowAllProviders ref={ref} /></Scrollable></div></div></div>- <div className="select-none h-[84px] py-[20px] border-t border-newBorder flex items-center">- <div className="flex-1 flex ps-[20px] gap-[8px]">+ <div className="select-none h-[84px] py-[20px] border-t border-newBorder flex items-center mobile:contents">+ <div+ className={clsx(+ 'flex-1 flex ps-[20px] gap-[8px] mobile:order-2 mobile:flex-wrap mobile:flex-none mobile:p-[12px]',+ mobileTab === 'preview' && 'mobile:hidden'+ )}+ >{!dummy && (<TagsComponentname="tags"@@ -610,7 +650,7 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {<RepeatComponent repeat={repeater} onChange={setRepeater} />)}</div>- <div className="pe-[20px] flex items-center justify-end gap-[8px]">+ <div className="pe-[20px] flex items-center justify-end gap-[8px] mobile:order-4 mobile:sticky mobile:bottom-0 mobile:z-[20] mobile:mt-auto mobile:flex-wrap mobile:p-[12px] mobile:bg-newBgColorInner mobile:border-t mobile:border-newBorder">{existingData?.integration && (<buttononClick={deletePost}@@ -643,7 +683,7 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {)}{addEditSets && (<button- className="text-white text-[15px] font-[600] min-w-[180px] btnSub disabled:cursor-not-allowed disabled:opacity-80 outline-none gap-[8px] flex justify-center items-center h-[44px] rounded-[8px] bg-[#612BD3] ps-[20px] pe-[16px]"+ className="text-white text-[15px] font-[600] min-w-[180px] mobile:basis-full btnSub disabled:cursor-not-allowed disabled:opacity-80 outline-none gap-[8px] flex justify-center items-center h-[44px] rounded-[8px] bg-[#612BD3] ps-[20px] pe-[16px]"disabled={selectedIntegrations.length === 0 || loading || locked}@@ -653,13 +693,16 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {</button>)}{!addEditSets && (- <div className="group cursor-pointer relative">+ <div+ ref={postNowRef}+ className="group cursor-pointer relative mobile:basis-full"+ ><buttondisabled={selectedIntegrations.length === 0 || loading || locked}onClick={schedule('schedule')}- className="text-white relative min-w-[180px] btnSub disabled:cursor-not-allowed disabled:opacity-80 outline-none gap-[8px] flex justify-center items-center h-[44px] rounded-[8px] bg-[#612BD3] ps-[20px] pe-[16px]"+ className="text-white relative min-w-[180px] mobile:w-full btnSub disabled:cursor-not-allowed disabled:opacity-80 outline-none gap-[8px] flex justify-center items-center h-[44px] rounded-[8px] bg-[#612BD3] ps-[20px] pe-[16px]">{loading && (<div className="absolute left-[50%] top-[50%] -translate-y-[50%] -translate-x-[50%]">@@ -668,7 +711,7 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {)}<divclassName={clsx(- 'text-[15px] font-[600]',+ 'text-[15px] font-[600] mobile:flex-1',loading && 'invisible')}>@@ -683,8 +726,19 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {: t('update', 'Update')}</div>{!dummy && (- <div className="flex justify-center items-center h-[20px] w-[20px] pt-[4px] arrow-change">- <DropdownArrowSmallIcon className="group-hover:rotate-180 text-white" />+ <div+ onClick={(e) => {+ e.stopPropagation();+ setShowPostNow(!showPostNow);+ }}+ className="flex justify-center items-center h-[20px] w-[20px] pt-[4px] mobile:pt-0 mobile:h-[44px] mobile:w-[44px] mobile:-me-[16px] mobile:border-s mobile:border-white/20 arrow-change"+ >+ <DropdownArrowSmallIcon+ className={clsx(+ 'group-hover:rotate-180 text-white',+ showPostNow && 'rotate-180'+ )}+ /></div>)}</button>@@ -695,7 +749,10 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {disabled={selectedIntegrations.length === 0 || loading || locked}- className="rounded-[8px] z-[300] disabled:cursor-not-allowed disabled:opacity-80 hidden group-hover:flex absolute bottom-[100%] -left-[12px] p-[12px] w-[206px] bg-newBgColorInner"+ className={clsx(+ 'rounded-[8px] z-[300] disabled:cursor-not-allowed disabled:opacity-80 absolute bottom-[100%] -left-[12px] mobile:left-0 p-[12px] mobile:px-0 w-[206px] mobile:w-full bg-newBgColorInner',+ showPostNow ? 'flex' : 'hidden group-hover:flex'+ )}><div className="text-white rounded-[8px] bg-[#D82D7E] h-[44px] w-full flex justify-center items-center post-now">{t('post_now', 'Post Now')}@@ -708,6 +765,7 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {</div></div><CopilotPopup+ className="mobile:!bottom-[136px]"hitEscapeToClose={false}clickOutsideToClose={true}instructions={`diff --git a/apps/frontend/src/components/new-layout/layout.component.tsx b/apps/frontend/src/components/new-layout/layout.component.tsxindex 6d47d15f4..091cd9fae 100644--- a/apps/frontend/src/components/new-layout/layout.component.tsx+++ b/apps/frontend/src/components/new-layout/layout.component.tsx@@ -1,6 +1,6 @@'use client';-import React, { ReactNode, useCallback, useEffect } from 'react';+import React, { ReactNode, useCallback, useEffect, useState } from 'react';import { Logo } from '@gitroom/frontend/components/new-layout/logo';import { Plus_Jakarta_Sans } from 'next/font/google';const ModeComponent = dynamic(@@ -14,7 +14,7 @@ import clsx from 'clsx';import dynamic from 'next/dynamic';import { useFetch } from '@gitroom/helpers/utils/custom.fetch';import { useVariables } from '@gitroom/react/helpers/variable.context';-import { useSearchParams } from 'next/navigation';+import { usePathname, useSearchParams } from 'next/navigation';import useSWR from 'swr';import { CheckPayment } from '@gitroom/frontend/components/layout/check.payment';import { ToolTip } from '@gitroom/frontend/components/layout/top.tip';@@ -57,6 +57,11 @@ export const LayoutComponent = ({ children }: { children: ReactNode }) => {// Feedback icon component attaches Sentry feedback to a top-bar icon when DSN is presentconst searchParams = useSearchParams();+ const pathname = usePathname();+ const [menuOpen, setMenuOpen] = useState(false);+ useEffect(() => {+ setMenuOpen(false);+ }, [pathname]);const load = useCallback(async (path: string) => {return await (await fetch(path)).json();}, []);@@ -98,7 +103,7 @@ export const LayoutComponent = ({ children }: { children: ReactNode }) => {<ContinueProvider /><divclassName={clsx(- 'flex flex-col min-h-screen min-w-screen text-newTextColor p-[12px]',+ 'flex flex-col min-h-screen min-w-screen text-newTextColor p-[12px] mobile:p-[8px] mobile:pb-[80px]',jakartaSans.className)}>@@ -108,43 +113,81 @@ export const LayoutComponent = ({ children }: { children: ReactNode }) => {) : (<><AnnouncementBanner />- <div className="flex-1 flex gap-[8px]">+ <div className="flex-1 flex gap-[8px] mobile:gap-0"><Support />- <div className="flex flex-col bg-newBgColorInner w-[80px] rounded-[12px]">+ {menuOpen && (+ <div+ className="hidden mobile:block fixed inset-0 bg-newBackdrop opacity-60 z-[490]"+ onClick={() => setMenuOpen(false)}+ />+ )}+ <div+ className={clsx(+ 'flex flex-col bg-newBgColorInner w-[80px] rounded-[12px] mobile:fixed mobile:top-0 mobile:bottom-0 mobile:start-0 mobile:z-[491] mobile:rounded-none mobile:overflow-y-auto mobile:overflow-x-hidden',+ !menuOpen && 'mobile:hidden'+ )}+ onClick={() => setMenuOpen(false)}+ ><divid="left-menu"className={clsx(- 'fixed h-full w-[64px] start-[17px] flex flex-1 top-0',+ 'fixed h-full w-[64px] start-[17px] flex flex-1 top-0 mobile:static mobile:h-auto mobile:min-h-full mobile:mx-auto',user?.admin && 'pt-[60px] max-h-[1000px]:w-[500px]')}>- <div className="flex flex-col h-full gap-[32px] flex-1 py-[12px]">+ <div className="flex flex-col h-full gap-[32px] mobile:gap-[16px] flex-1 py-[12px]"><Logo /><TopMenu /></div></div></div>- <div className="flex-1 bg-newBgLineColor rounded-[12px] overflow-hidden flex flex-col gap-[1px] blurMe">- <div className="flex bg-newBgColorInner h-[80px] px-[20px] items-center">- <div className="text-[24px] font-[600] flex flex-1">+ <div className="flex-1 min-w-0 bg-newBgLineColor rounded-[12px] overflow-hidden flex flex-col gap-[1px] blurMe">+ <div className="flex bg-newBgColorInner h-[80px] mobile:h-[64px] px-[20px] mobile:px-[12px] gap-[12px] items-center">+ <button+ className="hidden mobile:flex items-center justify-center w-[36px] h-[36px] -ms-[6px] rounded-[8px] text-textItemBlur hover:text-newTextColor hover:bg-boxFocused"+ onClick={() => setMenuOpen(true)}+ aria-label="Open menu"+ >+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="22"+ height="22"+ viewBox="0 0 24 24"+ fill="none"+ >+ <path+ d="M3 6H21M3 12H21M3 18H21"+ stroke="currentColor"+ strokeWidth="1.8"+ strokeLinecap="round"+ />+ </svg>+ </button>+ <div className="text-[24px] mobile:text-[20px] font-[600] flex flex-1 min-w-0"><Title /></div>- <div className="flex gap-[20px] text-textItemBlur">+ <div className="flex gap-[20px] mobile:gap-[14px] mobile:items-center text-textItemBlur"><StreakComponent />- <div className="w-[1px] h-[20px] bg-blockSeparator" />+ <div className="w-[1px] h-[20px] bg-blockSeparator mobile:hidden" /><OrganizationSelector /><div className="hover:text-newTextColor"><ModeComponent /></div>- <div className="w-[1px] h-[20px] bg-blockSeparator" />+ <div className="w-[1px] h-[20px] bg-blockSeparator mobile:hidden" /><LanguageComponent />- <ChromeExtensionComponent />- <div className="w-[1px] h-[20px] bg-blockSeparator" />- <AttachToFeedbackIcon />+ <div className="contents mobile:hidden">+ <ChromeExtensionComponent />+ </div>+ <div className="w-[1px] h-[20px] bg-blockSeparator mobile:hidden" />+ <div className="contents mobile:hidden">+ <AttachToFeedbackIcon />+ </div><NotificationComponent /></div></div>- <div className="flex flex-1 gap-[1px]">{children}</div>+ <div className="flex flex-1 min-w-0 gap-[1px] mobile:flex-col">+ {children}+ </div></div></div></>diff --git a/apps/frontend/src/components/notifications/notification.component.tsx b/apps/frontend/src/components/notifications/notification.component.tsxindex 731b80f96..95b51b0eb 100644--- a/apps/frontend/src/components/notifications/notification.component.tsx+++ b/apps/frontend/src/components/notifications/notification.component.tsx@@ -63,7 +63,7 @@ export const NotificationOpenComponent = () => {return (<divid="notification-popup"- className="opacity-0 animate-normalFadeDown mt-[10px] absolute w-[420px] min-h-[200px] top-[100%] end-0 bg-third text-textColor rounded-[16px] flex flex-col border border-tableBorder z-[600]"+ className="opacity-0 animate-normalFadeDown mt-[10px] absolute w-[420px] max-w-[calc(100vw-24px)] min-h-[200px] top-[100%] end-0 bg-third text-textColor rounded-[16px] flex flex-col border border-tableBorder z-[600]"><divclassName={`p-[16px] border-b border-tableBorder font-bold`}diff --git a/apps/frontend/src/components/platform-analytics/platform.analytics.tsx b/apps/frontend/src/components/platform-analytics/platform.analytics.tsxindex 67761ac53..4234c9f63 100644--- a/apps/frontend/src/components/platform-analytics/platform.analytics.tsx+++ b/apps/frontend/src/components/platform-analytics/platform.analytics.tsx@@ -177,12 +177,12 @@ export const PlatformAnalytics = () => {<><divclassName={clsx(- 'bg-newBgColorInner p-[20px] flex flex-col gap-[15px] transition-all',+ 'bg-newBgColorInner p-[20px] mobile:p-[12px] flex flex-col gap-[15px] transition-all mobile:w-full',collapseMenu === '1' ? 'group sidebar w-[100px]' : 'w-[260px]')}><div className="flex gap-[12px] flex-col">- <div className="flex items-center">+ <div className="flex items-center mobile:hidden"><h2 className="group-[.sidebar]:hidden flex-1 text-[20px] font-[500]">{t('channels')}</h2>@@ -207,75 +207,78 @@ export const PlatformAnalytics = () => {</svg></div></div>- {sortedIntegrations.map((integration, index) => (- <div- key={integration.id}- onClick={() => {- if (integration.refreshNeeded) {- toaster.show(- 'Please refresh the integration from the calendar',- 'warning'- );- return;- }- setRefresh(true);- setTimeout(() => {- setRefresh(false);- }, 10);- setCurrent(index);- }}- className={clsx(- 'flex gap-[12px] items-center group/profile justify-center hover:bg-boxHover rounded-e-[8px]',- currentIntegration.id !== integration.id &&- 'opacity-20 hover:opacity-100 cursor-pointer'- )}- >+ <div className="flex gap-[15px] mobile:gap-[12px] flex-col mobile:flex-row mobile:overflow-x-auto mobile:ps-[12px] mobile:pt-[6px] mobile:pb-[6px] scrollbar scrollbar-thumb-fifth scrollbar-track-newBgColor">+ {sortedIntegrations.map((integration, index) => (<div+ key={integration.id}+ onClick={() => {+ if (integration.refreshNeeded) {+ toaster.show(+ 'Please refresh the integration from the calendar',+ 'warning'+ );+ return;+ }+ setRefresh(true);+ setTimeout(() => {+ setRefresh(false);+ }, 10);+ setCurrent(index);+ }}className={clsx(- 'relative rounded-full flex justify-center items-center gap-[6px]',- integration.disabled && 'opacity-50'+ 'flex gap-[12px] items-center group/profile justify-center hover:bg-boxHover rounded-e-[8px] mobile:shrink-0',+ currentIntegration.id !== integration.id &&+ 'opacity-20 hover:opacity-100 cursor-pointer')}>- {(integration.inBetweenSteps || integration.refreshNeeded) && (- <div className="absolute start-0 top-0 w-[39px] h-[46px] cursor-pointer">- <div className="bg-red-500 w-[15px] h-[15px] rounded-full start-0 -top-[5px] absolute z-[200] text-[10px] flex justify-center items-center">- !+ <div+ className={clsx(+ 'relative rounded-full flex justify-center items-center gap-[6px]',+ integration.disabled && 'opacity-50'+ )}+ >+ {(integration.inBetweenSteps ||+ integration.refreshNeeded) && (+ <div className="absolute start-0 top-0 w-[39px] h-[46px] cursor-pointer">+ <div className="bg-red-500 w-[15px] h-[15px] rounded-full start-0 -top-[5px] absolute z-[200] text-[10px] flex justify-center items-center">+ !+ </div>+ <div className="bg-primary/60 w-[39px] h-[46px] start-0 top-0 absolute rounded-full z-[199]" /></div>- <div className="bg-primary/60 w-[39px] h-[46px] start-0 top-0 absolute rounded-full z-[199]" />+ )}+ <div className="h-full w-[4px] -ms-[12px] rounded-s-[3px] opacity-0 group-hover/profile:opacity-100 transition-opacity">+ <SVGLine /></div>- )}- <div className="h-full w-[4px] -ms-[12px] rounded-s-[3px] opacity-0 group-hover/profile:opacity-100 transition-opacity">- <SVGLine />+ <ImageWithFallback+ fallbackSrc={`/icons/platforms/${integration.identifier}.png`}+ src={integration.picture}+ className="rounded-[8px]"+ alt={integration.identifier}+ width={36}+ height={36}+ />+ <SafeImage+ src={`/icons/platforms/${integration.identifier}.png`}+ className="rounded-[8px] absolute z-10 bottom-[5px] -end-[5px] border border-fifth"+ alt={integration.identifier}+ width={18.41}+ height={18.41}+ />+ </div>+ <div+ className={clsx(+ 'flex-1 whitespace-nowrap text-ellipsis overflow-hidden group-[.sidebar]:hidden mobile:hidden',+ integration.disabled && 'opacity-50'+ )}+ >+ {integration.name}</div>- <ImageWithFallback- fallbackSrc={`/icons/platforms/${integration.identifier}.png`}- src={integration.picture}- className="rounded-[8px]"- alt={integration.identifier}- width={36}- height={36}- />- <SafeImage- src={`/icons/platforms/${integration.identifier}.png`}- className="rounded-[8px] absolute z-10 bottom-[5px] -end-[5px] border border-fifth"- alt={integration.identifier}- width={18.41}- height={18.41}- />- </div>- <div- className={clsx(- 'flex-1 whitespace-nowrap text-ellipsis overflow-hidden group-[.sidebar]:hidden',- integration.disabled && 'opacity-50'- )}- >- {integration.name}</div>- </div>- ))}+ ))}+ </div></div></div>- <div className="bg-newBgColorInner flex-1 flex-col flex p-[20px] gap-[12px]">+ <div className="bg-newBgColorInner flex-1 flex-col flex p-[20px] mobile:p-[12px] gap-[12px]">{!!options.length && (<div className="flex-1 flex flex-col gap-[14px]"><div className="max-w-[200px]">diff --git a/apps/frontend/src/components/plugs/plug.tsx b/apps/frontend/src/components/plugs/plug.tsxindex de6978ec1..91da85c77 100644--- a/apps/frontend/src/components/plugs/plug.tsx+++ b/apps/frontend/src/components/plugs/plug.tsx@@ -198,9 +198,9 @@ export const PlugItem: FC<{<divonClick={() => addPlug(data)}key={plug.title}- className="w-full h-[300px] rounded-[8px] bg-newTableHeader hover:bg-newTableBorder"+ className="w-full h-[300px] mobile:h-auto rounded-[8px] bg-newTableHeader hover:bg-newTableBorder">- <div key={plug.title} className="p-[16px] h-full flex flex-col flex-1">+ <div key={plug.title} className="p-[16px] h-full flex flex-col flex-1 mobile:gap-[16px]"><div className="flex"><div className="text-[20px] mb-[8px] flex-1">{plug.title}</div>{!!data && (@@ -263,7 +263,7 @@ export const Plug = () => {return null;}return (- <div className="grid grid-cols-3 gap-[30px]">+ <div className="grid grid-cols-3 tablet:grid-cols-2 mobile:!grid-cols-1 gap-[30px] mobile:gap-[16px]">{plug.plugs.map((p) => (<PlugItemkey={p.title + '-' + plug.providerId}diff --git a/apps/frontend/src/components/plugs/plugs.tsx b/apps/frontend/src/components/plugs/plugs.tsxindex 6071981b9..e27a57df7 100644--- a/apps/frontend/src/components/plugs/plugs.tsx+++ b/apps/frontend/src/components/plugs/plugs.tsx@@ -122,12 +122,12 @@ export const Plugs = () => {<><divclassName={clsx(- 'bg-newBgColorInner p-[20px] flex flex-col gap-[15px] transition-all',+ 'bg-newBgColorInner p-[20px] mobile:p-[12px] flex flex-col gap-[15px] transition-all mobile:w-full',collapseMenu === '1' ? 'group sidebar w-[100px]' : 'w-[260px]')}><div className="flex gap-[12px] flex-col">- <div className="flex items-center">+ <div className="flex items-center mobile:hidden"><h2 className="group-[.sidebar]:hidden flex-1 text-[20px] font-[500]">{t('channels')}</h2>@@ -152,75 +152,78 @@ export const Plugs = () => {</svg></div></div>- {sortedIntegrations.map((integration, index) => (- <div- key={integration.id}- onClick={() => {- if (integration.refreshNeeded) {- toaster.show(- 'Please refresh the integration from the calendar',- 'warning'- );- return;- }- setRefresh(true);- setTimeout(() => {- setRefresh(false);- }, 10);- setCurrent(index);- }}- className={clsx(- 'flex gap-[8px] items-center justify-center group/profile hover:bg-boxHover rounded-e-[8px]',- currentIntegration.id !== integration.id &&- 'opacity-20 hover:opacity-100 cursor-pointer'- )}- >+ <div className="flex gap-[15px] mobile:gap-[12px] flex-col mobile:flex-row mobile:overflow-x-auto mobile:ps-[12px] mobile:pt-[6px] mobile:pb-[6px] scrollbar scrollbar-thumb-fifth scrollbar-track-newBgColor">+ {sortedIntegrations.map((integration, index) => (<div+ key={integration.id}+ onClick={() => {+ if (integration.refreshNeeded) {+ toaster.show(+ 'Please refresh the integration from the calendar',+ 'warning'+ );+ return;+ }+ setRefresh(true);+ setTimeout(() => {+ setRefresh(false);+ }, 10);+ setCurrent(index);+ }}className={clsx(- 'relative rounded-full flex justify-center items-center gap-[8px]',- integration.disabled && 'opacity-50'+ 'flex gap-[8px] items-center justify-center group/profile hover:bg-boxHover rounded-e-[8px] mobile:shrink-0',+ currentIntegration.id !== integration.id &&+ 'opacity-20 hover:opacity-100 cursor-pointer')}>- {(integration.inBetweenSteps || integration.refreshNeeded) && (- <div className="absolute start-0 top-0 w-[39px] h-[46px] cursor-pointer">- <div className="bg-red-500 w-[15px] h-[15px] rounded-full start-0 -top-[5px] absolute z-[200] text-[10px] flex justify-center items-center">- !+ <div+ className={clsx(+ 'relative rounded-full flex justify-center items-center gap-[8px]',+ integration.disabled && 'opacity-50'+ )}+ >+ {(integration.inBetweenSteps ||+ integration.refreshNeeded) && (+ <div className="absolute start-0 top-0 w-[39px] h-[46px] cursor-pointer">+ <div className="bg-red-500 w-[15px] h-[15px] rounded-full start-0 -top-[5px] absolute z-[200] text-[10px] flex justify-center items-center">+ !+ </div>+ <div className="bg-primary/60 w-[39px] h-[46px] start-0 top-0 absolute rounded-full z-[199]" /></div>- <div className="bg-primary/60 w-[39px] h-[46px] start-0 top-0 absolute rounded-full z-[199]" />+ )}+ <div className="h-full w-[4px] -ms-[12px] rounded-s-[3px] opacity-0 group-hover/profile:opacity-100 transition-opacity">+ <SVGLine /></div>- )}- <div className="h-full w-[4px] -ms-[12px] rounded-s-[3px] opacity-0 group-hover/profile:opacity-100 transition-opacity">- <SVGLine />+ <ImageWithFallback+ fallbackSrc={`/icons/platforms/${integration.identifier}.png`}+ src={integration.picture}+ className="rounded-[8px]"+ alt={integration.identifier}+ width={36}+ height={36}+ />+ <SafeImage+ src={`/icons/platforms/${integration.identifier}.png`}+ className="rounded-[8px] absolute z-10 bottom-[5px] -end-[5px] border border-fifth"+ alt={integration.identifier}+ width={18.41}+ height={18.41}+ />+ </div>+ <div+ className={clsx(+ 'flex-1 whitespace-nowrap text-ellipsis overflow-hidden group-[.sidebar]:hidden mobile:hidden',+ integration.disabled && 'opacity-50'+ )}+ >+ {integration.name}</div>- <ImageWithFallback- fallbackSrc={`/icons/platforms/${integration.identifier}.png`}- src={integration.picture}- className="rounded-[8px]"- alt={integration.identifier}- width={36}- height={36}- />- <SafeImage- src={`/icons/platforms/${integration.identifier}.png`}- className="rounded-[8px] absolute z-10 bottom-[5px] -end-[5px] border border-fifth"- alt={integration.identifier}- width={18.41}- height={18.41}- />- </div>- <div- className={clsx(- 'flex-1 whitespace-nowrap text-ellipsis overflow-hidden group-[.sidebar]:hidden',- integration.disabled && 'opacity-50'- )}- >- {integration.name}</div>- </div>- ))}+ ))}+ </div></div></div>- <div className="bg-newBgColorInner flex-1 flex-col flex p-[20px] gap-[12px]">+ <div className="bg-newBgColorInner flex-1 flex-col flex p-[20px] mobile:p-[12px] gap-[12px]"><PlugsContext.Provider value={currentIntegrationPlug}><Plug /></PlugsContext.Provider>diff --git a/apps/frontend/src/components/public-api/public.component.tsx b/apps/frontend/src/components/public-api/public.component.tsxindex a47f576cc..2378eb646 100644--- a/apps/frontend/src/components/public-api/public.component.tsx+++ b/apps/frontend/src/components/public-api/public.component.tsx@@ -329,7 +329,7 @@ const McpSection = ({return (<div className="bg-newBgColorInnerInner rounded-[12px] border border-newBorder overflow-hidden">- <div className="bg-newBgColorInner px-[20px] py-[14px] border-b border-newBorder flex items-start justify-between gap-[12px]">+ <div className="bg-newBgColorInner px-[20px] mobile:px-[14px] py-[14px] border-b border-newBorder flex items-start justify-between gap-[12px] mobile:flex-col"><div><div className="text-[15px] font-[600]">{t('mcp_client_configuration', 'MCP Client Configuration')}@@ -341,7 +341,7 @@ const McpSection = ({)}</div></div>- <div className="flex gap-[6px] shrink-0 pt-[2px]">+ <div className="flex flex-wrap gap-[6px] shrink-0 pt-[2px]">{billingEnabled && (<><a@@ -372,7 +372,7 @@ const McpSection = ({</a></div></div>- <div className="p-[20px] flex flex-col gap-[16px]">+ <div className="p-[20px] mobile:p-[14px] flex flex-col gap-[16px]">{!chatOnly && (<div className="flex flex-col gap-[6px]"><div className="text-[13px] font-[600] text-customColor18">@@ -441,7 +441,7 @@ const McpSection = ({<pre className="bg-newBgColorInner border border-newBorder rounded-[8px] p-[16px] text-[13px] whitespace-pre-wrap break-all overflow-x-auto leading-[1.6]">{maskedConfig}</pre>- <div className="flex gap-[8px]">+ <div className="flex flex-wrap gap-[8px]">{auth === 'apikey' && !chatOnly && (<buttontype="button"@@ -571,7 +571,7 @@ const CliSection = ({ apiKey }: { apiKey: string }) => {return (<div className="bg-newBgColorInnerInner rounded-[12px] border border-newBorder overflow-hidden">- <div className="bg-newBgColorInner px-[20px] py-[14px] border-b border-newBorder flex items-start justify-between gap-[12px]">+ <div className="bg-newBgColorInner px-[20px] mobile:px-[14px] py-[14px] border-b border-newBorder flex items-start justify-between gap-[12px] mobile:flex-col"><div><div className="text-[15px] font-[600]">{t('cli_and_skills', 'CLI & AI Skills')}@@ -583,7 +583,7 @@ const CliSection = ({ apiKey }: { apiKey: string }) => {)}</div></div>- <div className="flex gap-[6px] shrink-0 pt-[2px]">+ <div className="flex flex-wrap gap-[6px] shrink-0 pt-[2px]"><aclassName="cursor-pointer px-[16px] h-[36px] bg-[#612BD3] hover:bg-[#5520CB] text-white transition-colors rounded-[8px] text-[13px] font-[600] flex items-center gap-[6px]"href="https://docs.postiz.com/cli/introduction"@@ -594,7 +594,7 @@ const CliSection = ({ apiKey }: { apiKey: string }) => {</a></div></div>- <div className="p-[20px] flex flex-col gap-[16px]">+ <div className="p-[20px] mobile:p-[14px] flex flex-col gap-[16px]"><div className="flex gap-[6px]">{(['local', 'ci'] as const).map((m) => (<button@@ -624,7 +624,7 @@ const CliSection = ({ apiKey }: { apiKey: string }) => {</pre></div>))}- <div className="flex gap-[8px]">+ <div className="flex flex-wrap gap-[8px]">{mode === 'ci' && (<buttontype="button"@@ -727,7 +727,7 @@ const PublicApiContent = () => {)}</div><div className="bg-newBgColorInnerInner rounded-[12px] border border-newBorder overflow-hidden">- <div className="bg-newBgColorInner px-[20px] py-[14px] border-b border-newBorder flex items-start justify-between gap-[12px]">+ <div className="bg-newBgColorInner px-[20px] mobile:px-[14px] py-[14px] border-b border-newBorder flex items-start justify-between gap-[12px] mobile:flex-col"><div><div className="text-[15px] font-[600]">{t('api_key', 'API Key')}@@ -739,7 +739,7 @@ const PublicApiContent = () => {)}</div></div>- <div className="flex gap-[6px] shrink-0 pt-[2px]">+ <div className="flex flex-wrap gap-[6px] shrink-0 pt-[2px]"><aclassName="cursor-pointer px-[16px] h-[36px] bg-[#612BD3] hover:bg-[#5520CB] text-white transition-colors rounded-[8px] text-[13px] font-[600] flex items-center gap-[6px]"href="https://docs.postiz.com/public-api"@@ -758,7 +758,7 @@ const PublicApiContent = () => {</a></div></div>- <div className="p-[20px] flex flex-col gap-[16px]">+ <div className="p-[20px] mobile:p-[14px] flex flex-col gap-[16px]"><div className="bg-newBgColorInner border border-newBorder rounded-[8px] px-[16px] h-[44px] flex items-center overflow-hidden"><code className="text-[14px] flex-1 truncate">{reveal ? (@@ -773,7 +773,7 @@ const PublicApiContent = () => {)}</code></div>- <div className="flex gap-[8px]">+ <div className="flex flex-wrap gap-[8px]"><buttontype="button"onClick={() => setReveal(!reveal)}diff --git a/apps/frontend/src/components/third-parties/third-party.component.tsx b/apps/frontend/src/components/third-parties/third-party.component.tsxindex 056c3780c..503467a8a 100644--- a/apps/frontend/src/components/third-parties/third-party.component.tsx+++ b/apps/frontend/src/components/third-parties/third-party.component.tsx@@ -64,7 +64,7 @@ export const ThirdPartyMenuComponent: FC<{{show && (<divonClick={(e) => e.stopPropagation()}- className={`absolute top-[100%] start-0 p-[8px] px-[20px] bg-fifth flex flex-col gap-[16px] z-[100] rounded-[8px] border border-tableBorder text-nowrap`}+ className={`absolute top-[100%] start-0 mobile:start-auto mobile:end-0 p-[8px] px-[20px] bg-fifth flex flex-col gap-[16px] z-[100] rounded-[8px] border border-tableBorder text-nowrap`}><divclassName="flex gap-[12px] items-center"@@ -116,18 +116,18 @@ export const ThirdPartyComponent = () => {<><divclassName={clsx(- 'bg-newBgColorInner p-[20px] flex flex-col gap-[15px] transition-all',+ 'bg-newBgColorInner p-[20px] mobile:p-[12px] flex flex-col gap-[15px] transition-all mobile:w-full',collapseMenu === '1' ? 'group sidebar w-[100px]' : 'w-[260px]')}><div className="flex gap-[12px] flex-col"><div className="flex items-center">- <h2 className="group-[.sidebar]:hidden flex-1 text-[20px] font-[500]">+ <h2 className="group-[.sidebar]:hidden mobile:group-[.sidebar]:block flex-1 text-[20px] mobile:text-[18px] font-[500]">{t('integrations')}</h2><divonClick={() => setCollapseMenu(collapseMenu === '1' ? '0' : '1')}- className="group-[.sidebar]:rotate-[180deg] group-[.sidebar]:mx-auto text-btnText bg-btnSimple rounded-[6px] w-[24px] h-[24px] flex items-center justify-center cursor-pointer select-none"+ className="group-[.sidebar]:rotate-[180deg] group-[.sidebar]:mx-auto mobile:hidden text-btnText bg-btnSimple rounded-[6px] w-[24px] h-[24px] flex items-center justify-center cursor-pointer select-none"><svgxmlns="http://www.w3.org/2000/svg"@@ -184,7 +184,7 @@ export const ThirdPartyComponent = () => {// @ts-ignorerole="Handle"className={clsx(- 'flex-1 whitespace-nowrap text-ellipsis overflow-hidden group-[.sidebar]:hidden'+ 'flex-1 whitespace-nowrap text-ellipsis overflow-hidden group-[.sidebar]:hidden mobile:group-[.sidebar]:block')}data-tooltip-id="tooltip"data-tooltip-content={p.title}@@ -200,7 +200,7 @@ export const ThirdPartyComponent = () => {</div></div></div>- <div className="bg-newBgColorInner flex-1 flex-col flex p-[20px] gap-[12px]">+ <div className="bg-newBgColorInner flex-1 flex-col flex p-[20px] mobile:p-[12px] gap-[12px]"><ThirdPartyListComponent reload={mutate} /></div></>diff --git a/apps/frontend/src/components/third-parties/third-party.list.component.tsx b/apps/frontend/src/components/third-parties/third-party.list.component.tsxindex 9dcaea7b2..f8d7a842c 100644--- a/apps/frontend/src/components/third-parties/third-party.list.component.tsx+++ b/apps/frontend/src/components/third-parties/third-party.list.component.tsx@@ -126,12 +126,12 @@ export const ThirdPartyListComponent: FC<{ reload: () => void }> = (props) => {);return (- <div className="grid grid-cols-4 gap-[10px] justify-items-center justify-center">+ <div className="grid grid-cols-4 tablet:grid-cols-3 mobile:!grid-cols-2 gap-[10px] justify-items-center justify-center">{data?.map((p: any) => (<divonClick={addApiKey(p.title, p.identifier)}key={p.identifier}- className="w-full h-full p-[20px] min-h-[100px] text-[14px] bg-newTableHeader hover:bg-newTableBorder rounded-[8px] transition-all text-textColor relative flex flex-col gap-[15px] cursor-pointer"+ className="w-full h-full p-[20px] mobile:p-[14px] min-h-[100px] text-[14px] bg-newTableHeader hover:bg-newTableBorder rounded-[8px] transition-all text-textColor relative flex flex-col gap-[15px] cursor-pointer"><div><imgdiff --git a/apps/frontend/src/components/third-parties/third-party.media-library.tsx b/apps/frontend/src/components/third-parties/third-party.media-library.tsxindex 9b02713f1..a0630acf5 100644--- a/apps/frontend/src/components/third-parties/third-party.media-library.tsx+++ b/apps/frontend/src/components/third-parties/third-party.media-library.tsx@@ -91,7 +91,7 @@ const ThirdPartyMediaLibraryBrowser: FC<{<div className="flex-1 relative"><div className="absolute left-0 top-0 w-full h-full overflow-x-hidden overflow-y-auto scrollbar scrollbar-thumb-newColColor scrollbar-track-newBgColorInner">{isLoading && (- <div className="grid grid-cols-4 gap-[8px]">+ <div className="grid grid-cols-4 mobile:grid-cols-3 gap-[8px]">{[...new Array(8)].map((_, i) => (<divkey={i}@@ -106,7 +106,7 @@ const ThirdPartyMediaLibraryBrowser: FC<{</div>)}{!isLoading && !!data?.results?.length && (- <div className="grid grid-cols-4 gap-[8px]">+ <div className="grid grid-cols-4 mobile:grid-cols-3 gap-[8px]">{data.results.map((item: any) => {const isSelected = !!selected.find((s) => s.id === item.id);return (diff --git a/apps/frontend/src/components/third-parties/third-party.media.tsx b/apps/frontend/src/components/third-parties/third-party.media.tsxindex 252409259..c523bcdc5 100644--- a/apps/frontend/src/components/third-parties/third-party.media.tsx+++ b/apps/frontend/src/components/third-parties/third-party.media.tsx@@ -95,14 +95,14 @@ export const ThirdPartyPopup: FC<{return (<div className={clsx('flex flex-wrap flex-col gap-[10px] pt-[20px]')}>{!thirdParty && (- <div className="grid grid-cols-4 gap-[10px] justify-items-center justify-center">+ <div className="grid grid-cols-4 mobile:grid-cols-2 gap-[10px] justify-items-center justify-center">{thirdParties.map((p: any) => (<divonClick={() => {setThirdParty(p);}}key={p.identifier}- className="w-full h-full p-[20px] min-h-[100px] text-[14px] bg-newTableHeader hover:bg-newTableBorder rounded-[8px] transition-all text-textColor relative flex flex-col gap-[15px] cursor-pointer"+ className="w-full h-full p-[20px] mobile:p-[14px] min-h-[100px] text-[14px] bg-newTableHeader hover:bg-newTableBorder rounded-[8px] transition-all text-textColor relative flex flex-col gap-[15px] cursor-pointer"><div><img