mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Decrease max width of all Settings pages
This commit is contained in:
4 files changed
+764
-769
No files matched your search
@@ -4,6 +4,7 @@ import { Button } from '@/components/ui/button';
|
||||
import { useIsMobile } from '@/hooks/useIsMobile';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import type { ReactNode } from 'react';
|
||||
import { cn } from '@/lib/utils';
|
||||
|
||||
interface SettingsPageLayoutProps {
|
||||
/** The icon component to display next to the title */
|
||||
@@ -27,7 +28,7 @@ export function SettingsPageLayout({
|
||||
titleKey,
|
||||
descriptionKey,
|
||||
children,
|
||||
className = 'space-y-6',
|
||||
className,
|
||||
}: SettingsPageLayoutProps) {
|
||||
const { t } = useTranslation();
|
||||
const isMobile = useIsMobile();
|
||||
@@ -70,7 +71,7 @@ export function SettingsPageLayout({
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className={className}>
|
||||
<div className={cn('space-y-6 max-w-xl', className)}>
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user