Skip to content

Conversation

@interim17
Copy link
Contributor

Problem

Small fix for mobile styling on the "extra large order buttons"

Can refine this or seek UX input but it prevents obvious overflow

Screenshots (optional):

Screenshot 2026-01-09 at 1 33 49 PM Screenshot 2026-01-09 at 1 33 31 PM

@netlify
Copy link

netlify bot commented Jan 9, 2026

Deploy Preview for cell-catalog ready!

Name Link
🔨 Latest commit 686f364
🔍 Latest deploy log https://app.netlify.com/projects/cell-catalog/deploys/69617491cc351e00089fa7ea
😎 Deploy Preview https://deploy-preview-407--cell-catalog.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@meganrm
Copy link
Collaborator

meganrm commented Jan 9, 2026

I'm just noticing now, but the designs don't have the icons for this buttons, which will help on the sizing

@meganrm
Copy link
Collaborator

meganrm commented Jan 9, 2026

@interim17
Copy link
Contributor Author

@meganrm yeah, but the mobile designs section historically was "disease catalog" and the normal/disease order buttons have divergent designs.

I assumed the differences between normal and disease buttons would hold in tablet/mobile sizing, I can check with Travis. I did implement some things (like centering text) that match the disease catalog because it just was obviously more appropriate, and I dropped the second icon on the smallest sizes.

Dropping the big icons would be much simpler though if thats what UX wants

@interim17 interim17 marked this pull request as ready for review January 12, 2026 17:38
@meganrm meganrm requested a review from Copilot January 12, 2026 19:01
Copy link
Contributor

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 improves mobile and tablet responsive styling for the cell line info card's extra large order buttons to prevent overflow on smaller screens.

Changes:

  • Adjusted font sizes and button dimensions for mobile viewports
  • Added tablet-specific media query to center button content
  • Hidden linkout icon on mobile screens to save space

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/style/cell-line-info-card.module.css Added responsive styles for tablet and mobile breakpoints, including font size adjustments, button sizing, and icon visibility
src/components/CellLineInfoCard/CellLineInfoCardBase.tsx Added className to LinkOutIcon component to enable mobile hiding

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

{label}
</h2>
<LinkOutIcon />
<LinkOutIcon className={linkoutIcon}/>
Copy link

Copilot AI Jan 12, 2026

Choose a reason for hiding this comment

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

Missing space before the closing tag. Should be className={linkoutIcon} />.

Suggested change
<LinkOutIcon className={linkoutIcon}/>
<LinkOutIcon className={linkoutIcon} />

Copilot uses AI. Check for mistakes.
Copy link
Collaborator

Choose a reason for hiding this comment

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

did you run format on this?

@meganrm
Copy link
Collaborator

meganrm commented Jan 12, 2026

@meganrm yeah, but the mobile designs section historically was "disease catalog" and the normal/disease order buttons have divergent designs.

I assumed the differences between normal and disease buttons would hold in tablet/mobile sizing, I can check with Travis. I did implement some things (like centering text) that match the disease catalog because it just was obviously more appropriate, and I dropped the second icon on the smallest sizes.

Dropping the big icons would be much simpler though if thats what UX wants

Oh you're right, I missed these section : https://www.figma.com/design/kMIJN6BoOkXIhnVUruIHNT/Website-allencell.org?node-id=5913-8084&t=Kif8KdISF5j1Owr7-0, but our implementation doesn't actually match this design. "

Each button has it’s icon to the left and is left justified with the external link button right justified."

@interim17
Copy link
Contributor Author

Oh you're right, I missed these section : https://www.figma.com/design/kMIJN6BoOkXIhnVUruIHNT/Website-allencell.org?node-id=5913-8084&t=Kif8KdISF5j1Owr7-0, but our implementation doesn't actually match this design. "

Each button has it’s icon to the left and is left justified with the external link button right justified."

Not sure I follow this comment, but I do think that at full screen widths we match the current designs, and I got a sign off from Travis on this PR via Slack (centering and dropping icons on tablet sizing, etc)

@interim17 interim17 requested review from meganrm and rugeli January 12, 2026 20:44
Copy link
Collaborator

@rugeli rugeli left a comment

Choose a reason for hiding this comment

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

The info card looks great on both iPhone and Android! I did noticed some overflow issues in the tab buttons, but I'm assuming we're working on that next.

@interim17 interim17 merged commit 79378cd into main Jan 16, 2026
6 checks passed
@interim17 interim17 deleted the fix/mobile-large-button branch January 16, 2026 22:16
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.

4 participants