Skip to content

fix(ui): resolve testimonial card readability issues (#655) - #2

Closed
coderboy-yash wants to merge 5 commits into
mainfrom
fix/testimonial-cards-655
Closed

fix(ui): resolve testimonial card readability issues (#655)#2
coderboy-yash wants to merge 5 commits into
mainfrom
fix/testimonial-cards-655

Conversation

@coderboy-yash

Copy link
Copy Markdown
Owner

Fixes containers#655.

Problem

On the home page "What people are saying about Podman" section:

  • The leftmost testimonial card (Ananth Iyer) was clipped and not reachable by scrolling.
  • Card background matched the surrounding section background in both light and dark mode, making cards hard to read.
  • Cards had sharp corners (rounded-sm), inconsistent with the rest of the site's card components.

Root cause

  • #slider used justify-center on an overflow-x-scroll flex container. With content wider than the viewport, this centers the track so the first item starts off-screen to the left of scrollLeft: 0, making it permanently unreachable.
  • Testimonial card used bg-white dark:bg-gray-900, which is the same as the section's background gradient stops, instead of the bg-gray-50 dark:bg-gray-700 convention used by Card and CustomCard elsewhere.

Fix

  • Slider: justify-centerjustify-start, plus a small left inset (px-1) so the first card isn't flush against the edge.
  • Card: rounded-smrounded-lg, bg-white dark:bg-gray-900bg-gray-50 dark:bg-gray-700 dark:shadow-none, matching existing card conventions.
  • Cleaned up the card header markup: removed an order-first div (visually reordering the avatar despite DOM order) and a stray m-2 that offset the avatar/text block inconsistently — avatar now comes first naturally in the markup with a fixed size.

Testing

Ran docusaurus start locally and visually verified the testimonial section in both light and dark mode at 1400x900 — all cards, including the first one, render fully within the container with readable contrast and consistent corners. Also ran tsc --noEmit; the only errors present are pre-existing and unrelated to these files (tracked separately in containers#661).

TomSweeneyRedHat and others added 5 commits August 5, 2026 16:27
Add the Podman Community Meeting Notes for the August 4, 2026 meeting.

Signed-off-by: Tom Sweeney <tsweeney@redhat.com>
Signed-off-by: mheon <7735048+mheon@users.noreply.github.com>
Fixes containers#655.

- Slider container used justify-center with overflow-x-scroll, which
  centered content instead of anchoring it to the left. Since the
  scroll position starts at 0, this clipped the first (leftmost) card
  off-screen with no way to scroll back to it. Switched to
  justify-start and added a small left inset so the first card is
  fully visible on load.
- Testimonial cards used bg-white / dark:bg-gray-900, which matches
  the surrounding section background in both themes, making card
  boundaries and text hard to read. Switched to the bg-gray-50 /
  dark:bg-gray-700 convention already used by Card and CustomCard
  elsewhere in the codebase.
- Cards used rounded-sm (sharp corners), inconsistent with rounded-lg
  used by other card components. Updated to match.
- Simplified the header markup: the avatar was pulled to the front
  visually with an order-first div even though it's declared after
  the name/handle in the DOM, and an unrelated m-2 on the text
  wrapper offset it awkwardly relative to the avatar. Reordered the
  markup so the avatar comes first naturally and gave it a fixed
  size so it doesn't stretch with content.

Signed-off-by: yash nigam <yashnigam.dev@gmail.com>
@coderboy-yash

Copy link
Copy Markdown
Owner Author

Superseded — the clipping fix here duplicates containers#632 / PR containers#640, which already covers the root cause. Closing to avoid confusion.

@coderboy-yash
coderboy-yash deleted the fix/testimonial-cards-655 branch August 15, 2026 10:32
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.

[Bug]: layout bug at home page (what people are saying about podman)

4 participants