Skip to content

fix: show .stats-container across all viewport widths ≥768px#81

Merged
ThisIs-Developer merged 2 commits intomainfrom
copilot/fix-stats-container-visibility
May 5, 2026
Merged

fix: show .stats-container across all viewport widths ≥768px#81
ThisIs-Developer merged 2 commits intomainfrom
copilot/fix-stats-container-visibility

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 4, 2026

  • Remove scattered conflicting @media (max-width: 1080px) / @media (max-width: 767px) navbar blocks (6 blocks removed)
  • Replace with a single consolidated @media (max-width: 1079px) block that uses !important to override Bootstrap d-md-none/d-md-flex at the correct 1080px breakpoint
  • Keep existing @media (max-width: 1280px) compact-desktop block (icon-only view-mode buttons) — no behaviour change needed there
  • Apply identical changes to desktop-app/resources/styles.css (duplicate file)
  • Simplify .toolbar.header-right selector to .toolbar (code review feedback)

Agent-Logs-Url: https://github.com/ThisIs-Developer/Markdown-Viewer/sessions/e7db951b-fe40-43c2-bd0d-b04dcf479266

Co-authored-by: ThisIs-Developer <109382325+ThisIs-Developer@users.noreply.github.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
markdown-viwer Ready Ready Preview, Comment May 5, 2026 4:06am

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 5, 2026

Deploying markdown-viewer with  Cloudflare Pages  Cloudflare Pages

Latest commit: 63a053e
Status: ✅  Deploy successful!
Preview URL: https://727a2174.markdown-viewer.pages.dev
Branch Preview URL: https://copilot-fix-stats-container.markdown-viewer.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying markdownviewer with  Cloudflare Pages  Cloudflare Pages

Latest commit: 63a053e
Status: ✅  Deploy successful!
Preview URL: https://8369102e.markdownviewer.pages.dev
Branch Preview URL: https://copilot-fix-stats-container.markdownviewer.pages.dev

View logs

@ThisIs-Developer ThisIs-Developer marked this pull request as ready for review May 5, 2026 04:07
Copilot AI review requested due to automatic review settings May 5, 2026 04:07
@ThisIs-Developer ThisIs-Developer merged commit 9ab3f4f into main May 5, 2026
6 checks passed
@ThisIs-Developer ThisIs-Developer deleted the copilot/fix-stats-container-visibility branch May 5, 2026 04:07
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the app header/navbar responsive behavior by consolidating previously scattered media queries and aligning header element visibility with a single <1080px breakpoint, while also updating the stats container’s Bootstrap visibility classes in both the web and desktop-app duplicated assets.

Changes:

  • Consolidates multiple responsive navbar-related @media blocks into one @media (max-width: 1079px) block (hamburger + stacked panes behavior).
  • Updates the stats container Bootstrap breakpoint from d-lg-flex to d-md-flex in both index.html copies.
  • Applies the same responsive/CSS changes to the duplicated desktop-app/resources/* assets.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
styles.css Removes scattered responsive rules and adds a consolidated <1080px navbar/layout override block.
index.html Changes stats container visibility utility from d-lg-flex to d-md-flex.
desktop-app/resources/styles.css Mirrors the root styles.css responsive consolidation for the desktop app bundle.
desktop-app/resources/index.html Mirrors the root index.html stats container breakpoint change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread styles.css
Comment on lines +884 to 890
@media (max-width: 1079px) {
/* Override Bootstrap d-md-flex / d-md-none so the breakpoint is 1080px */
.stats-container,
.view-mode-group,
.toolbar {
display: none !important;
}
Comment thread index.html
<i class="bi bi-github"></i>
</a>
<div id="stats-container" class="stats-container d-flex align-items-center d-none d-lg-flex">
<div id="stats-container" class="stats-container d-flex align-items-center d-none d-md-flex">
Comment on lines +884 to 890
@media (max-width: 1079px) {
/* Override Bootstrap d-md-flex / d-md-none so the breakpoint is 1080px */
.stats-container,
.view-mode-group,
.toolbar {
display: none !important;
}
<i class="bi bi-github"></i>
</a>
<div id="stats-container" class="stats-container d-flex align-items-center d-none d-lg-flex">
<div id="stats-container" class="stats-container d-flex align-items-center d-none d-md-flex">
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.

3 participants