-
Notifications
You must be signed in to change notification settings - Fork 159
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
Fix ResourceTiles on mobile and add basic resize slider for tiles #8372
Conversation
@@ -31,4 +31,6 @@ export abstract class ViewModeConstants { | |||
} | |||
} | |||
static readonly queryName: string = 'view-mode' | |||
static readonly tilesSizeDefault: string = '12rem' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static readonly tilesSizeDefault: string = '12rem' | |
static readonly tilesSizeDefault: number = 1 |
@@ -22,3 +22,8 @@ size: | |||
value: 22px | |||
form-check-default: | |||
value: 14px | |||
tiles: | |||
resizeable: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resizeable: | |
resize-step: |
or something similar? resizable (typo btw) sounds like a boolean.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea, and thanks for the educate - turns out past me already made this mistake :D #5052
ce2d5c9
to
385dada
Compare
tiles: | ||
resize-step: | ||
value: 12rem | ||
default: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default is not in use. Delete it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, thx. It's meant to be used for non-resizable tiles (like the ones on the spaces-projects view), I added the token without actually using it in the component 🙈 see latest commit in this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aaaah, now it makes sense 😅
@@ -22,3 +22,8 @@ size: | |||
value: 22px | |||
form-check-default: | |||
value: 14px | |||
tiles: | |||
resize-step: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If resize-step
is the only size value for tiles, we could omit the nesting and just have something like
tiles-step:
value: 12rem
fb42ba4
to
668b397
Compare
45b3e28
to
984624e
Compare
SonarCloud Quality Gate failed. |
…ynamic index problem)
Description
Didn't invest the time to create a
OcSlider
component but kept it inline, also doesn't fetch bigger tiles thumbnails since the current resolution seems quite reasonable even on bigger tiles.Related Issue