[GH-ISSUE #480] Implementation of adjustable widget sizes #1208

Closed
opened 2026-03-14 13:57:35 +03:00 by kerem · 0 comments
Owner

Originally created by @DOD-101 on GitHub (Jun 29, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/480

While working on implementing different sized widget in the library, I have come across two different way to implement the setting of different widget sizes in the config.

Option 1

Have two config values album width & playlist width and have them be the percentage values used in the layout.

Pros

  • Super simple to understand

Cons

  • Having two values to configure the size of the widgets seems very unclean
  • It is easily possible to write values which are too large and would then cause errors, which need to be checked for

Option 2

Add a ration to the config such as 3:2:4, which will define the size of the different widgets. See: CSS-Flex

Pros

  • One value to define the size of all relevant widgets
  • Errors can be entirely avoided
  • Easier to scale to different places in the app

Cons

  • A tiny bit harder to understand
  • Will require adding a new "type" to the config
Originally created by @DOD-101 on GitHub (Jun 29, 2024). Original GitHub issue: https://github.com/aome510/spotify-player/issues/480 While working on implementing different sized widget in the library, I have come across two different way to implement the setting of different widget sizes in the config. ### Option 1 Have two config values `album width` & `playlist width` and have them be the percentage values used in the layout. #### Pros - Super simple to understand #### Cons - Having two values to configure the size of the widgets seems very unclean - It is easily possible to write values which are too large and would then cause errors, which need to be checked for ### Option 2 Add a ration to the config such as `3:2:4`, which will define the size of the different widgets. See: [CSS-Flex ](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) #### Pros - One value to define the size of all relevant widgets - Errors can be entirely avoided - Easier to scale to different places in the app #### Cons - A tiny bit harder to understand - Will require adding a new "type" to the config
kerem 2026-03-14 13:57:35 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#1208
No description provided.