Skip to content

Conversation

@niranjan-uma-shankar
Copy link
Contributor

@niranjan-uma-shankar niranjan-uma-shankar commented Jul 26, 2025

This PR resolves mobile and tablet UI bugs on the /members page. More specifically, the following issues are fixed (tracked in #24501):

  • On mobile screens, the member details page occupied most of the available width, leaving little space for the rest of the columns.
  • On tablet screens, there was a visual overlap of columns when scrolling horizontally.

Changes

  1. Apply a fixed width for the member details column on mobile screens, leaving adequate space for the rest of the columns.
BEFORE AFTER
m2 m1
  1. Hide overflow on tablet screens
BEFORE AFTER
Screenshot 2025-07-26 at 6 01 04 PM Screenshot 2025-07-26 at 6 55 12 PM

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 26, 2025

Walkthrough

Adds overflow-x: hidden to .view-container.members-list-container under max-width: 1100px. Removes the previous max-width: 800px rule that set .gh-members-list-row .gh-list-data:first-child { min-width: 280px; overflow-x: hidden; } and replaces it with a new max-width: 480px rule setting that selector to width: 160px; min-width: 160px; max-width: 160px. In the members template, the members-list-container class is now always present on the <section class="view-container">; the conditional members-list-container-stretch remains unchanged. No other structural or public-facing changes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 07d3ec0 and 2bb817c.

📒 Files selected for processing (2)
  • ghost/admin/app/styles/layouts/members.css (2 hunks)
  • ghost/admin/app/templates/members.hbs (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • ghost/admin/app/templates/members.hbs
🚧 Files skipped from review as they are similar to previous changes (1)
  • ghost/admin/app/styles/layouts/members.css
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Setup
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@niranjan-uma-shankar niranjan-uma-shankar marked this pull request as ready for review July 26, 2025 13:33
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
ghost/admin/app/styles/layouts/members.css (2)

8-10: Restrict overflow rule to smaller breakpoints (and fix minor formatting).

.view-container is a high-level utility that’s reused across many admin screens. Adding a global overflow-x: hidden; risks masking legitimate horizontal scroll on wider layouts (e.g. long tables in other views). Consider moving this rule inside a breakpoint or a route-specific wrapper instead of the top-level container, and clean up the extra space after the selector.

- .view-container  {
-     overflow-x: hidden;
- }
+@media (max-width: 1100px) { /* or a route-specific selector */
+    .members-view .view-container {
+        overflow-x: hidden;
+    }
+}

326-333: Ensure truncated content remains readable on ≤ 440 px screens.

The fixed 160 px width solves the layout crush, but without an explicit text-overflow: ellipsis titles/emails may simply disappear beyond the cell edge (now hidden). Consider adding the common truncation trio to provide a visual cue:

         width: 160px;
         min-width: 160px;
         max-width: 160px;
-        overflow-x: hidden;
+        overflow: hidden;
+        white-space: nowrap;
+        text-overflow: ellipsis;

Also note that the earlier default rule (30% / min-width 360 px) still applies above 440 px; confirm the breakpoint handoff doesn’t introduce a sudden jump around 441 px.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 58c7bfe and 2de94d0.

📒 Files selected for processing (1)
  • ghost/admin/app/styles/layouts/members.css (2 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: kevinansfield
PR: TryGhost/Ghost#23824
File: ghost/core/core/server/services/email-service/email-templates/partials/styles.hbs:919-926
Timestamp: 2025-06-13T11:57:58.226Z
Learning: In `ghost/core/core/server/services/email-service/email-templates/partials/styles.hbs`, some style blocks (e.g., `.latest-post p` and `.latest-post p a`) still use the legacy colour `#73818c` on purpose; they are later overridden by `emailCustomization` feature rules, as noted by inline TODO comments. These occurrences should not be flagged as inconsistencies.
ghost/admin/app/styles/layouts/members.css (1)

Learnt from: kevinansfield
PR: #23824
File: ghost/core/core/server/services/email-service/email-templates/partials/styles.hbs:919-926
Timestamp: 2025-06-13T11:57:58.226Z
Learning: In ghost/core/core/server/services/email-service/email-templates/partials/styles.hbs, some style blocks (e.g., .latest-post p and .latest-post p a) still use the legacy colour #73818c on purpose; they are later overridden by emailCustomization feature rules, as noted by inline TODO comments. These occurrences should not be flagged as inconsistencies.

@ErisDS ErisDS requested a review from peterzimon August 4, 2025 12:12
ref TryGhost#24501
On mobile resolutions, this fixes an issues that causes the member details column to take most of the available viewport width, which caused readability issues with the rest of the table's columns. On tablet resolutions, this fixes an issue that caused the columns to visually overlap when scrolling horizontally.
This ensures that the overflow value is specific to tablet resolutions and restricted to the members section.
Removes a change which was inadvertently committed and no longer needed.
This change aligns with Tailwind, to identify scren resolutions upto 480px as mobile.
@niranjan-uma-shankar niranjan-uma-shankar force-pushed the fix-members-sticky-column-mobile branch from 07d3ec0 to 2bb817c Compare August 12, 2025 07:02
@niranjan-uma-shankar
Copy link
Contributor Author

Resolved merge conflicts and PR is ready for review.

@ErisDS ErisDS added the community [triage] Community features and bugs label Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community [triage] Community features and bugs needs:review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants