avo-hq / avo

Build Ruby on Rails apps 10x faster
https://avohq.io
Other
1.52k stars 254 forks source link

Poor use of horizontal/vertical space at smaller breakpoints. #2588

Open MrJoy opened 8 months ago

MrJoy commented 8 months ago

Describe the bug

For field names, the default width is w-48, with a breakpoint rule of md:w-64.

Unfortunately, for long field names, this presents a problem as certain field labels are relatively long and will get broken onto two lines on mobile.

You might consider this instead: w-full md:w64 since the field name and value aren't on the same row when rendering that small anyway.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Add this configuration '...'
  2. Go to '...'
  3. Click on '....'
  4. Scroll down to '....'
  5. See error

Expected behavior & Actual behavior

Models and resource files

System configuration

Avo version: 3.4.4

Rails version: 7.1.3.2

Ruby version: 3.2.2

License type:

Are you using Avo monkey patches, overriding views or view components?

Screenshots or screen recordings

Additional context

Impact

Urgency

adrianthedev commented 7 months ago

"Screenshots, or it didn't happen" 😅 We'd love to see the broken labels.

MrJoy commented 7 months ago
image

vs.

image
github-actions[bot] commented 7 months ago

This issue has been marked as stale because there was no activity for the past 15 days.

adrianthedev commented 6 months ago

top-notch feedback and solution!

thank you @MrJoy!