Fix document preview modal size for better UX #36

Merged
Ghost merged 0 commits from refs/pull/36/head into main 2025-11-12 05:30:26 +00:00
Ghost commented 2025-11-12 05:30:20 +00:00 (Migrated from codeberg.org)

Problem:

  • Document viewer modals (Blutwerte & Diagnose/Berichte) were too small in height
  • Users could only see a narrow slit of the document
  • Required scrolling within the modal window

Solution:

  • Increased viewer-shell height from min(96vh, 1080px) to 92vh
  • Removed restrictive max-height constraint
  • Expanded width to 1600px (from 1440px)
  • Set min-height to 600px for minimum usability
  • Modal now utilizes 92% of viewport height optimally

Affected components:

  • Blutwerte "Ansehen" button document preview
  • Diagnose & Berichte eye icon document preview
  • Both image and PDF viewer display modes

Files changed:

  • static/css/modals.css: Updated .viewer-shell and .viewer-surface styles
  • CHANGELOG.md: Documented UX improvement
Problem: - Document viewer modals (Blutwerte & Diagnose/Berichte) were too small in height - Users could only see a narrow slit of the document - Required scrolling within the modal window Solution: - Increased viewer-shell height from min(96vh, 1080px) to 92vh - Removed restrictive max-height constraint - Expanded width to 1600px (from 1440px) - Set min-height to 600px for minimum usability - Modal now utilizes 92% of viewport height optimally Affected components: - Blutwerte "Ansehen" button document preview - Diagnose & Berichte eye icon document preview - Both image and PDF viewer display modes Files changed: - static/css/modals.css: Updated .viewer-shell and .viewer-surface styles - CHANGELOG.md: Documented UX improvement
Sign in to join this conversation.
No description provided.