[UI/UX] Implement Immersive Reader Layout & Merriweather Typography #12

Closed
opened 2026-05-07 16:45:37 +00:00 by mjasin · 1 comment
Owner

Issue 1: Reader Content Centering & Typographic Refinement

System Prompt:

Context: The current reader content is left-aligned, causing eye strain on wide displays.
Role: Senior UI Engineer.
Task: Refactor ReaderCanvas.razor and its isolated CSS to implement a "Zen-focused" reading container.
Requirements:

  1. Wrap content in a .reader-flow-container with max-width: 800px and margin: 0 auto.
  2. Enforce font-family: 'Merriweather', serif; for all TextSegmentBlock elements.
  3. Set line-height: 1.65 and letter-spacing: -0.01em for optimal readability.
  4. Ensure the background remains #F9F9F9 (Paper-white).
    Constraint: Do not break the Vertical Flow engine; use padding-bottom to ensure the last paragraph is reachable above the footer.
#### **Issue 1: Reader Content Centering & Typographic Refinement** **System Prompt:** > **Context:** The current reader content is left-aligned, causing eye strain on wide displays. > **Role:** Senior UI Engineer. > **Task:** Refactor `ReaderCanvas.razor` and its isolated CSS to implement a "Zen-focused" reading container. > **Requirements:** > > 1. Wrap content in a `.reader-flow-container` with `max-width: 800px` and `margin: 0 auto`. > 2. Enforce `font-family: 'Merriweather', serif;` for all `TextSegmentBlock` elements. > 3. Set `line-height: 1.65` and `letter-spacing: -0.01em` for optimal readability. > 4. Ensure the background remains `#F9F9F9` (Paper-white). > **Constraint:** Do not break the Vertical Flow engine; use padding-bottom to ensure the last paragraph is reachable above the footer.
Author
Owner

In addition, the canvas displaying the ebook content should have dedicated scroll bars. Currently, there are none, as shown in the attached screenshot. Vertical scrolling is intuitive, but horizontal scrolling is not. This is problematic, for example, for code blocks.

image.png

In addition, the canvas displaying the ebook content should have dedicated scroll bars. Currently, there are none, as shown in the attached screenshot. Vertical scrolling is intuitive, but horizontal scrolling is not. This is problematic, for example, for code blocks. ![image.png](/attachments/a87ada31-b592-4eaa-b1fb-e2128947f7a0)
120 KiB
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mjasin/Nexus.Reader#12