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

Fix ResourceTiles on mobile and add basic resize slider for tiles #8372

Merged
merged 6 commits into from
Feb 8, 2023

Conversation

pascalwengerter
Copy link
Contributor

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

@@ -31,4 +31,6 @@ export abstract class ViewModeConstants {
}
}
static readonly queryName: string = 'view-mode'
static readonly tilesSizeDefault: string = '12rem'
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
static readonly tilesSizeDefault: string = '12rem'
static readonly tilesSizeDefault: number = 1

@@ -22,3 +22,8 @@ size:
value: 22px
form-check-default:
value: 14px
tiles:
resizeable:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
resizeable:
resize-step:

or something similar? resizable (typo btw) sounds like a boolean.

Copy link
Contributor Author

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

tiles:
resize-step:
value: 12rem
default:
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Member

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:
Copy link
Member

@kulmann kulmann Feb 7, 2023

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

@sonarcloud
Copy link

sonarcloud bot commented Feb 8, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug B 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

52.9% 52.9% Coverage
0.0% 0.0% Duplication

@kulmann kulmann merged commit 13fcb72 into owncloud:master Feb 8, 2023
@pascalwengerter pascalwengerter deleted the features/8367-8368 branch February 8, 2023 23:25
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.

[Tiles view] Fix mobile display of tiles grid
2 participants