From 5c3a62340eed5b490b9c51318e9735c00965892b Mon Sep 17 00:00:00 2001 From: Haoqian Li Date: Fri, 26 Jun 2026 01:19:23 +0800 Subject: [PATCH 1/2] fix: require viewport base in mode c --- SKILL.md | 15 ++++++++------- .../skills/frontend-slides/SKILL.md | 15 ++++++++------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/SKILL.md b/SKILL.md index 9b8374bf..0a3d34af 100644 --- a/SKILL.md +++ b/SKILL.md @@ -74,13 +74,14 @@ Determine what the user wants: ### Mode C: Modification Rules -When enhancing existing presentations, fixed-stage fitting is the biggest risk: +When enhancing existing presentations, first preserve the required viewport baseline, then manage fixed-stage fitting: -1. **Before adding content:** Count existing elements, check against density limits -2. **Adding images:** Fit them inside the 1920×1080 slide canvas. If slide already has max content, split into two slides -3. **Adding text:** Max 4-6 bullets per slide. Exceeds limits? Split into continuation slides -4. **After ANY modification, verify:** the slide stage remains 16:9, no text overflows its card, no panels overlap, and screenshots look correct at 1280×720 plus one phone viewport -5. **Proactively reorganize:** If modifications will cause overflow, automatically split content and inform the user. Don't wait to be asked +1. **Before any modification:** Read `viewport-base.css`, then inspect the existing HTML `