Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/app/api/workspaces/autogen/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ const AVAILABLE_ICONS = [

/** Layout positions for autogen items (matches desired workspace arrangement) */
const AUTOGEN_LAYOUTS = {
youtube: { x: 0, y: 0, w: 2, h: 7 },
flashcard: { x: 2, y: 0, w: 2, h: 5 },
note: { x: 2, y: 5, w: 1, h: 4 },
quiz: { x: 0, y: 7, w: 2, h: 13 },
pdf: { w: 1, h: 4 },
image: { w: 2, h: 8 },
youtube: { x: 0, y: 0, w: 1, h: 1 },
flashcard: { x: 2, y: 0, w: 2, h: 1 },
note: { x: 2, y: 1, w: 1, h: 1 },
quiz: { x: 0, y: 2, w: 2, h: 3 },
pdf: { w: 1, h: 1 },
image: { w: 2, h: 2 },
} as const;

type FileUrlItem = { url: string; mediaType: string; filename?: string; fileSize?: number };
Expand Down
7 changes: 7 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,13 @@ body.marquee-selecting iframe {
touch-action: none !important;
}

/* Hide resize handles when isResizable is false (e.g. YouTube cards)
react-grid-layout adds .react-resizable-hide to Resizable when isResizable: false */
.react-resizable-hide .react-resizable-handle {
display: none !important;
pointer-events: none !important;
}

/* Improve resize handles for mobile */
@media (max-width: 768px) {
.react-grid-item>.react-resizable-handle {
Expand Down
Loading