Skip to content

Commit

Permalink
Fix my-apps view on mobile
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <szaimen@e.mail.de>
  • Loading branch information
szaimen committed Oct 12, 2023
1 parent 03c7ee4 commit 52e4c7a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
18 changes: 17 additions & 1 deletion apps/settings/css/settings.scss
Expand Up @@ -2,7 +2,8 @@
This file is licensed under the Affero General Public License version 3 or later.
See the COPYING-README file. */
@use 'variables';
@import 'functions';
@use 'sass:math';
@import 'functions';

input {
&#openid, &#webdav {
Expand Down Expand Up @@ -914,6 +915,7 @@ span.version {
display: table;
width: 100%;
height: auto;
white-space: normal;
}

margin-bottom: 100px;
Expand All @@ -933,6 +935,13 @@ span.version {
box-sizing: border-box;
}

> .actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
justify-content: end;
}

&.selected {
background-color: var(--color-background-dark);
}
Expand Down Expand Up @@ -1061,6 +1070,13 @@ span.version {
}
}

// Display buttons above each other on mobile
@media (max-width: math.div(1024px, 2)) {
.apps-list.installed .section > .actions {
display: table-cell;
}
}

#apps-list-search {
.section {
h2 {
Expand Down
8 changes: 1 addition & 7 deletions apps/settings/src/components/AppList/AppItem.vue
Expand Up @@ -209,14 +209,8 @@ export default {
}
</script>

<style scoped>
<style scoped lang="scss">
.app-icon {
filter: var(--background-invert-if-bright);
}
.actions {
display: flex !important;
gap: 8px;
flex-wrap: wrap;
justify-content: end;
}
</style>

0 comments on commit 52e4c7a

Please sign in to comment.