Skip to content

Fix desktop mode: lock card-body to 364px and scale template content#46

Merged
OstinUA merged 2 commits into
mainfrom
claude/fix-card-overflow-9ql3F
Apr 13, 2026
Merged

Fix desktop mode: lock card-body to 364px and scale template content#46
OstinUA merged 2 commits into
mainfrom
claude/fix-card-overflow-9ql3F

Conversation

@CommitAxis
Copy link
Copy Markdown
Member

Summary

  • Add .platform-desktop .card-body { flex: none; height: 364px; overflow: hidden; } to enforce the fixed layout math (77 + 70 + 364 + 52 + 77 = 640px) in Desktop mode for all 7 templates.
  • Add per-template font-size and padding overrides under .platform-desktop so content fits within the 364px body zone without pushing the footer off-screen (Grid, Timeline, Spotlight, Minimal, Compact, Terminal, Masonry).
  • Mobile mode is completely untouched — no regressions to any template in Mobile.

Test plan

  • Switch to Desktop mode and cycle through all 7 templates — footer should always be visible at Y=511, no content overflowing the 640px boundary.
  • Confirm Compact still looks correct (it was the reference; minor padding adjustment only).
  • Switch to Mobile mode and verify all templates look identical to before.
  • Export an image in Desktop mode for at least one template and confirm the 1280×640 output has correct proportions.

https://claude.ai/code/session_01NEbt6KjVPvt3o5jFVgCgCv

In Desktop mode, set .platform-desktop .card-body to a fixed height of
364px with overflow:hidden so all 7 templates respect the layout math
(77+70+364+52+77=640px). Add per-template font-size and padding overrides
so content fits within the fixed body zone without pushing the footer
off-screen.

https://claude.ai/code/session_01NEbt6KjVPvt3o5jFVgCgCv
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 13, 2026

Warning

Rate limit exceeded

@CommitAxis has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 4 minutes and 18 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 4 minutes and 18 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 73fde109-17e6-47b8-8b43-ec5aad971777

📥 Commits

Reviewing files that changed from the base of the PR and between 9e9db3a and bba0f5b.

📒 Files selected for processing (1)
  • assets/css/styles.css
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/fix-card-overflow-9ql3F

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

AI Analysis Summary

The CSS changes introduce new styles for desktop mode, affecting the layout and design of the templates. The changes seem to be intentional and part of the design update. No action is required, but it's essential to review the changes to ensure they meet the design requirements.

Severity: MODERATE | Role: frontend

Full details: #47

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 15c38157a2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread assets/css/styles.css Outdated
}

/* Timeline in desktop */
.platform-desktop .template-timeline .card-body {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use compound selectors for desktop template overrides

The desktop template-specific rules are written as descendant selectors (for example .platform-desktop .template-timeline .card-body), but platform-desktop and template-* are both applied to the same .card element in applyTemplate/applyPlatform, so these selectors never match. As a result, all per-template desktop scaling for Timeline/Spotlight/Minimal/Compact/Terminal/Masonry is ignored and only the generic .platform-desktop rules take effect, which reintroduces the overflow/layout issues this commit is trying to fix.

Useful? React with 👍 / 👎.

…late overrides

.platform-desktop and .template-* are both applied to the same .card element,
so .platform-desktop .template-timeline .card-body (descendant) never matches.
Replace all template-specific desktop selectors with compound form
.platform-desktop.template-timeline .card-body so overrides actually apply.

https://claude.ai/code/session_01NEbt6KjVPvt3o5jFVgCgCv
@OstinUA OstinUA merged commit 6b041c2 into main Apr 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants