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

feat: adjust tile sizes #10558

Merged
merged 3 commits into from
Mar 14, 2024
Merged

feat: adjust tile sizes #10558

merged 3 commits into from
Mar 14, 2024

Conversation

kulmann
Copy link
Member

@kulmann kulmann commented Mar 7, 2024

Description

Played around with tile sizes... stepping from one tile size to the next was too big.

Previously we had 9rem as base tile size and added 9rem for every step in the tile size slider.
Now we have 10rem as base tile size and add 6rem for every step in the tile size slider.

Related Issue

Screenshots:

new default tile size (the second stepping, slighty smaller than before: now 16rem, before 18rem)

Screenshot 2024-03-07 at 09 17 59 Screenshot 2024-03-07 at 09 25 03

new smallest tile size (the first stepping, slightly bigger than before: now 10rem, before 9rem)

Screenshot 2024-03-07 at 09 18 03 Screenshot 2024-03-07 at 09 19 20

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests
  • Documentation
  • Maintenance (e.g. dependency updates or tooling)

@kulmann kulmann self-assigned this Mar 7, 2024
@AlexAndBear
Copy link
Contributor

IHMO we should also limit the max tile size. It's too big to make sense

@kulmann
Copy link
Member Author

kulmann commented Mar 7, 2024

IHMO we should also limit the max tile size. It's too big to make sense

you mean the design tokens / css vars? base size and step size? what do you think are reasonable values? Steps are limited to 6, i.e. with the defaults that we now have in the design tokens the max tile size is 10rem + (5 * 6rem) = 40rem, which should be ok.

@AlexAndBear
Copy link
Contributor

AlexAndBear commented Mar 7, 2024

If I have 3 spaces on the board and set the tile size to max, it looks like this:

image

Which I think looks ridiculous :(

@kulmann
Copy link
Member Author

kulmann commented Mar 7, 2024

If I have 3 spaces on the board and set the tile size to max, it looks like this:
Which I think looks ridiculous :(

As long as that's not your only option to display space tiles at all... I don't see the issue honestly.

@AlexAndBear
Copy link
Contributor

Yeah I found the issue. In the spaces view it renders 1 tile in the same display resolution and tile size setting and in the personal/files view it renders 2 tiles. There is also an issue with the tile size stays the same just the inner icon size changes on smaller screens between some tiles view size steps 🤷‍♀️

Feels a little inconsistent overall but maybe scope creep

@kulmann
Copy link
Member Author

kulmann commented Mar 7, 2024

Yeah I found the issue. In the spaces view it renders 1 tile in the same display resolution and tile size setting and in the personal/files view it renders 2 tiles. There is also an issue with the tile size stays the same just the inner icon size changes on smaller screens between some tiles view size steps 🤷‍♀️

Feels a little inconsistent overall but maybe scope creep

uh... sounds worth fixing. can you provide detailed steps to reproduce? then I can tackle it in this PR as well maybe.

Copy link
Collaborator

@JammingBen JammingBen left a comment

Choose a reason for hiding this comment

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

LGTM (aside from the issues Alex was mentioning) 👍

@kulmann
Copy link
Member Author

kulmann commented Mar 12, 2024

Yeah I found the issue. In the spaces view it renders 1 tile in the same display resolution and tile size setting and in the personal/files view it renders 2 tiles. There is also an issue with the tile size stays the same just the inner icon size changes on smaller screens between some tiles view size steps 🤷‍♀️

Feels a little inconsistent overall but maybe scope creep

Fixed :-)

@AlexAndBear
Copy link
Contributor

AlexAndBear commented Mar 12, 2024

Unfortunately not for me :( icons are not resizing anymore, but as well tiles stay the same size

Screen.Recording.2024-03-12.at.20.37.47.mov

@kulmann
Copy link
Member Author

kulmann commented Mar 13, 2024

@AlexAndBear could you please test again? :-) slider max value now gets adjusted according to max available steps calculated in the tiles view.

Copy link

sonarcloud bot commented Mar 14, 2024

Copy link
Contributor

@AlexAndBear AlexAndBear left a comment

Choose a reason for hiding this comment

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

I love it ! 😮

@kulmann kulmann merged commit e389298 into master Mar 14, 2024
3 checks passed
@delete-merged-branch delete-merged-branch bot deleted the adjust-tile-sizing branch March 14, 2024 11:35
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.

Tile size switch misbehaving Increase standard tile size
3 participants