Skip to content

Commit d0dd09f

Browse files
authored
Widen plan viewer layout for responsiveness (#32)
1 parent 717c95e commit d0dd09f

5 files changed

Lines changed: 7 additions & 6 deletions

File tree

bun.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/editor/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,9 +634,9 @@ const App: React.FC = () => {
634634
<div className="flex-1 flex overflow-hidden">
635635
{/* Document Area */}
636636
<main className="flex-1 overflow-y-auto bg-grid">
637-
<div className="min-h-full flex flex-col items-center p-3 md:p-8">
637+
<div className="min-h-full flex flex-col items-center px-4 py-3 md:px-10 md:py-8 xl:px-16">
638638
{/* Mode Switcher */}
639-
<div className="w-full max-w-3xl mb-3 md:mb-4 flex justify-start">
639+
<div className="w-full max-w-5xl xl:max-w-6xl mb-3 md:mb-4 flex justify-start">
640640
<ModeSwitcher mode={editorMode} onChange={setEditorMode} taterMode={taterMode} />
641641
</div>
642642

packages/ui/components/AnnotationSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const AnnotationSidebar: React.FC<SidebarProps> = ({
2424
});
2525

2626
return (
27-
<div className="w-80 border-l border-border/50 bg-card/50 backdrop-blur-sm h-full flex flex-col transition-colors">
27+
<div className="w-[min(22rem,32vw)] min-w-[16rem] border-l border-border/50 bg-card/50 backdrop-blur-sm h-full flex flex-col transition-colors">
2828
<div className="p-4 border-b border-border/50 flex items-center justify-between">
2929
<h2 className="font-semibold text-foreground">Review Changes</h2>
3030
<span className="text-xs bg-muted text-muted-foreground px-2 py-1 rounded-full">

packages/ui/components/DecisionBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const DecisionBar: React.FC<DecisionBarProps> = ({
8585

8686
return (
8787
<div className="fixed bottom-0 left-0 right-0 p-4 bg-card/95 backdrop-blur-xl border-t border-border z-50">
88-
<div className="max-w-3xl mx-auto flex items-center gap-4">
88+
<div className="max-w-5xl xl:max-w-6xl mx-auto flex items-center gap-4">
8989
{/* Status info */}
9090
<div className="flex-1 text-sm text-muted-foreground">
9191
{annotationCount > 0 ? (

packages/ui/components/Viewer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,11 +517,11 @@ export const Viewer = forwardRef<ViewerHandle, ViewerProps>(({
517517
};
518518

519519
return (
520-
<div className="relative z-50 w-full max-w-3xl">
520+
<div className="relative z-50 w-full max-w-5xl xl:max-w-6xl">
521521
{taterMode && <TaterSpriteSitting />}
522522
<article
523523
ref={containerRef}
524-
className="w-full max-w-3xl bg-card border border-border/50 rounded-xl shadow-xl p-5 md:p-10 lg:p-14 relative"
524+
className="w-full max-w-5xl xl:max-w-6xl bg-card border border-border/50 rounded-xl shadow-xl p-5 md:p-8 lg:p-10 xl:p-12 relative"
525525
>
526526
{/* Header buttons */}
527527
<div className="absolute top-3 right-3 md:top-5 md:right-5 flex items-start gap-2">

0 commit comments

Comments
 (0)