Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout issue for status columns in element index #3335

Closed
jonleverrier opened this issue Aug 25, 2023 · 5 comments
Closed

Layout issue for status columns in element index #3335

jonleverrier opened this issue Aug 25, 2023 · 5 comments
Assignees

Comments

@jonleverrier
Copy link

What happened?

Description

My order view summary has around 11 columns worth of data. On smaller screens, the Paid Status column data falls onto 2 lines. Is there anyway to force this to always be on 1 line? On larger screens it displays fine.

Screenshot 2023-08-25 at 09 37 43

Steps to reproduce

Expected behavior

Actual behavior

Craft CMS version

4.5.2

Craft Commerce version

4.2.11

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@lukeholder lukeholder self-assigned this Nov 8, 2023
@lukeholder
Copy link
Member

lukeholder commented Nov 8, 2023

We are using the built-in .status class from Craft core so I will move the issue to the craftcms/cms repo, and we can investigate from there.

This reproduces it when in an elements tableAttributeHtml():

<span class="status red"></span> Label

@lukeholder lukeholder removed their assignment Nov 8, 2023
@lukeholder lukeholder transferred this issue from craftcms/commerce Nov 8, 2023
@lukeholder lukeholder changed the title [4.x]: Paid status falls on to 2 lines on smaller screens Layout issue for status columns in element index Nov 8, 2023
@i-just i-just self-assigned this Nov 8, 2023
@i-just
Copy link
Contributor

i-just commented Nov 8, 2023

@jonleverrier thanks for reporting! PRs raised to adjust this.

@brandonkelly
Copy link
Member

brandonkelly commented Nov 11, 2023

@nfourtythree You can fix this by wrapping the status indicator and label in a <span class="nowrap">.

@lukeholder
Copy link
Member

@jonleverrier This is fixed for the next release. I will let you know when it's out.

@lukeholder
Copy link
Member

@jonleverrier This was fixed in the latest 4.x release of Commerce.

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

No branches or pull requests

4 participants