flowfuse icon indicating copy to clipboard operation
flowfuse copied to clipboard

Fix tile-select option sizing

Open knolleary opened this issue 1 year ago • 1 comments

Whilst working on some improvements around changing team type, I notice the layout of the tile-selection-options was not aligning the vertical sizes.

image

On investigation, I found #3249 had wrapped the tile-selection-option in a div in order to get ff-tooltip working on the option. The wrapping div is then getting the right vertical size, but the option doesn't grow to fill it.

On further digging into why the div was added, it was done to get the tooltip working. The reason it wasn't working was a disabled tile-selection-option sets pointer-events:none, so the hover state is never triggered to show the tooltip.

This PR removes the wrapping div and modifies the css to remove the need to use pointer-events: none in the disabled state.

End result:

image

knolleary avatar May 15 '24 15:05 knolleary

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 79.22%. Comparing base (d99d46c) to head (62220c9). Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3861   +/-   ##
=======================================
  Coverage   79.22%   79.22%           
=======================================
  Files         281      281           
  Lines       12660    12660           
  Branches     2813     2813           
=======================================
  Hits        10030    10030           
  Misses       2630     2630           
Flag Coverage Δ
backend 79.22% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar May 15 '24 15:05 codecov[bot]

Added a small change to allow the Team Type select to use full width, whilst keeping the form its reduced width.

Given we have 3 types in production,optimising to have them in a single row rather than split makes for a nicer layout.

image

knolleary avatar May 16 '24 10:05 knolleary

Agree with the change of widht for the tiles, but it looks very odd center-align, moved to left aligned instead:

Screenshot 2024-05-16 at 14 04 43

joepavitt avatar May 16 '24 13:05 joepavitt

Agree with the change of widht for the tiles, but it looks very odd center-align, moved to left aligned instead:

I specifically didn't do that as all of our other forms (create app/instance etc) are center-aligned and constrained width. So was trying to keep some consistency with those - whilst allowing the type selection to 'expand' outwards.

But if you're happy with these changes, then no worries.

knolleary avatar May 16 '24 13:05 knolleary

But if you're happy with these changes, then no worries.

We have inconsistency in a lot of places with this, want to re-work forms in the near future, so might as well make the improvement here

joepavitt avatar May 16 '24 13:05 joepavitt