Page MenuHomePhabricator

[landing] Make buttons variable width
ClosedPublic

Authored by ashoat on Oct 7 2024, 12:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 17, 5:27 AM
Unknown Object (File)
Sat, Nov 9, 3:55 AM
Unknown Object (File)
Sat, Nov 9, 2:21 AM
Unknown Object (File)
Sat, Nov 2, 10:38 PM
Unknown Object (File)
Thu, Oct 24, 7:29 AM
Unknown Object (File)
Wed, Oct 23, 7:55 PM
Unknown Object (File)
Wed, Oct 23, 7:55 PM
Unknown Object (File)
Wed, Oct 23, 7:55 PM
Subscribers

Details

Summary

The <Button> component in landing is used in two places:

  1. It's used in the team page. From testing on Chrome, I can see that flex-basis has no effect there. Chrome explains why:
    Screenshot 2024-10-07 at 3.03.36 PM.png (936×1 px, 242 KB)
  2. The main use is the download page. I'm about to introduce a new button, so I actually want to change the grid layout there. See test plan for before/after
Test Plan

Check how team and download pages look in my local dev environment

beforeafter
Screenshot 2024-10-07 at 3.08.46 PM.png (462×658 px, 34 KB)
Screenshot 2024-10-07 at 3.05.20 PM.png (462×634 px, 35 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ashoat edited the test plan for this revision. (Show Details)
ashoat added inline comments.
landing/download.css
28 ↗(On Diff #44946)

Without this change, we see the following:

Screenshot 2024-10-07 at 3.09.14 PM.png (434×610 px, 34 KB)

Just looked at the download page on safari and it looks really bad right now:

Screenshot 2024-10-07 at 3.40.08 PM.png (1×1 px, 85 KB)

Can you confirm before landing that your changes fix this issue, too?

This revision is now accepted and ready to land.Oct 7 2024, 12:40 PM

Yeah that's flex-basis: 120px; for sure. Here's what it looks like now in Safari:

Screenshot 2024-10-07 at 4.00.29 PM.png (458×914 px, 46 KB)

This revision was automatically updated to reflect the committed changes.