···18}
1920function getMaxWidth(width: number): number {
21+ if (width >= 1660) return maxContainerWidths.threeXl;
22+ if (width >= 1260) return maxContainerWidths.twoXl;
23+ if (width >= 800) return maxContainerWidths.xl;
24+ if (width >= 740) return maxContainerWidths.lg;
25+ if (width >= 660) return maxContainerWidths.md;
000000000026 return maxContainerWidths.sm;
27}
28
+5-11
js/app/components/debug/breakpoint-indicator.tsx
···67 // Simple breakpoint detection based on width
8 let current = "xs";
9- if (width >= 1536) {
10- current = "xxl";
11- } else if (width >= 1280) {
12- current = "xl";
13- } else if (width >= 1024) {
14- current = "lg";
15- } else if (width >= 768) {
16- current = "md";
17- } else if (width >= 640) {
18- current = "sm";
19- }
2021 return (
22 <View
···67 // Simple breakpoint detection based on width
8 let current = "xs";
9+ if (width >= 1536) current = "xxl";
10+ else if (width >= 1280) current = "xl";
11+ else if (width >= 1024) current = "lg";
12+ else if (width >= 768) current = "md";
13+ else if (width >= 640) current = "sm";
0000001415 return (
16 <View
···388 // Clear error when user starts typing
389 const handleDIDChange = (text: string) => {
390 setModeratorDID(text);
391- if (error) {
392- setError(null);
393- }
394 };
395396 const handleAdd = async () => {
···430 <ResponsiveDialog
431 open={visible}
432 onOpenChange={(open) => {
433- if (!open) {
434- onClose();
435- }
436 }}
437 title="Add Moderator"
438 description="Enter the DID or handle of the user you want to add as a moderator and select their permissions."
···388 // Clear error when user starts typing
389 const handleDIDChange = (text: string) => {
390 setModeratorDID(text);
391+ if (error) setError(null);
00392 };
393394 const handleAdd = async () => {
···428 <ResponsiveDialog
429 open={visible}
430 onOpenChange={(open) => {
431+ if (!open) onClose();
00432 }}
433 title="Add Moderator"
434 description="Enter the DID or handle of the user you want to add as a moderator and select their permissions."