1.6 KiB
1.6 KiB
Checklist: Responsive UI Transition (800px constraint removal)
📋 Pre-Implementation
- Identify hardcoded 800px constraints in JS/Vue files.
- Verify baseline stability (
composer test).
🛠️ Implementation
1. Global Configuration in resources/js/app.js
- Locate the inline
<style>template (Lines 251-260). - Modify
bodymax-widthfrom800pxtovar(--layout-max-width, 100%). - Add
:rootvariable--layout-max-width: 1440px;(or preferred max desktop width). - Standardize centering:
margin: 0 auto; width: 100%;.
2. Header Layout Adjustment (TopHeader.vue)
- Update
.headermax-width: 800pxtovar(--layout-max-width, 100%). - Ensure
.tf-containerinside the header provides reasonable content padding/centering.
3. Bottom Navigation Adjustment (BottomNav.vue)
- Update
.bottom-navigation-barmax-width: 800pxtovar(--layout-max-width, 100%). - Ensure the navigation bar stays centered at the bottom of the visible area.
4. UI Store / Settings Sync
- Check if
uiStore.isFullWidthcorrectly overrides these new variables (likely handled by the existing classes).
5. Documentation
- Update
ai-docs/dictionary.mdwith the new Layout Architecture details.
✅ Verification
- Build assets:
npm run build. - Restart container:
docker restart bukidbountyapp. - Verify landscape display on simulated devices (e.g., tablet landscape).
- Verify portrait display remains centered and mobile-friendly.
- Verify POS page still works in "Full Width" mode.