Merge pull request #29918 from nextcloud/backport/29871/stable23

This commit is contained in:
Pytal 2021-11-26 09:16:22 -08:00 committed by GitHub
commit df961fa2f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -32,7 +32,11 @@
{{ t('settings', 'The more restrictive setting of either visibility or scope is respected on your Profile. For example, if visibility is set to "Show to everyone" and scope is set to "Private", "Private" is respected.') }}
</em>
<div class="visibility-dropdowns">
<div
class="visibility-dropdowns"
:style="{
gridTemplateRows: `repeat(${rows}, 44px)`,
}">
<VisibilityDropdown v-for="param in visibilityParams"
:key="param.id"
:param-id="param.id"
@ -89,6 +93,10 @@ export default {
disabled() {
return !this.profileEnabled
},
rows() {
return Math.ceil(this.visibilityParams.length / 2)
},
},
mounted() {
@ -137,7 +145,6 @@ section {
.visibility-dropdowns {
display: grid;
grid-template-rows: repeat(auto-fit, 44px);
gap: 10px 40px;
}
@ -146,7 +153,6 @@ section {
.visibility-dropdowns {
grid-auto-flow: column;
height: 320px;
}
}