|
24 | 24 | type="radio" |
25 | 25 | button-variant-grouped="vertical" |
26 | 26 | @update:checked="toggleCustomPermissions"> |
27 | | - {{ t('files_sharing', 'View only') }} |
28 | | - <template #icon> |
29 | | - <ViewIcon :size="20" /> |
30 | | - </template> |
| 27 | + <ViewIcon :size="20" /> |
| 28 | + <span>{{ t('files_sharing', 'View only') }}</span> |
31 | 29 | </NcCheckboxRadioSwitch> |
32 | 30 | <NcCheckboxRadioSwitch :button-variant="true" |
33 | 31 | :checked.sync="sharingPermission" |
|
36 | 34 | type="radio" |
37 | 35 | button-variant-grouped="vertical" |
38 | 36 | @update:checked="toggleCustomPermissions"> |
39 | | - {{ t('files_sharing', 'Allow upload and editing') }} |
40 | | - <template #icon> |
41 | | - <EditIcon :size="20" /> |
42 | | - </template> |
| 37 | + <EditIcon :size="20" /> |
| 38 | + <span>{{ t('files_sharing', 'Allow upload and editing') }}</span> |
43 | 39 | </NcCheckboxRadioSwitch> |
44 | 40 | <NcCheckboxRadioSwitch v-if="allowsFileDrop" |
45 | 41 | :button-variant="true" |
|
49 | 45 | type="radio" |
50 | 46 | button-variant-grouped="vertical" |
51 | 47 | @update:checked="toggleCustomPermissions"> |
52 | | - {{ t('files_sharing', 'File drop') }} |
| 48 | + <UploadIcon :size="20" /> |
| 49 | + <span>{{ t('files_sharing', 'File drop') }}</span> |
53 | 50 | <small>{{ t('files_sharing', 'Upload only') }}</small> |
54 | | - <template #icon> |
55 | | - <UploadIcon :size="20" /> |
56 | | - </template> |
57 | 51 | </NcCheckboxRadioSwitch> |
58 | 52 | <NcCheckboxRadioSwitch :button-variant="true" |
59 | 53 | :checked.sync="sharingPermission" |
|
62 | 56 | type="radio" |
63 | 57 | button-variant-grouped="vertical" |
64 | 58 | @update:checked="expandCustomPermissions"> |
65 | | - {{ t('files_sharing', 'Custom permissions') }} |
| 59 | + <DotsHorizontalIcon :size="20" /> |
| 60 | + <span>{{ t('files_sharing', 'Custom permissions') }}</span> |
66 | 61 | <small>{{ t('files_sharing', customPermissionsList) }}</small> |
67 | | - <template #icon> |
68 | | - <DotsHorizontalIcon :size="20" /> |
69 | | - </template> |
70 | 62 | </NcCheckboxRadioSwitch> |
71 | 63 | </div> |
72 | 64 | </div> |
|
142 | 134 | {{ t('file_sharing', 'Custom permissions') }} |
143 | 135 | </NcCheckboxRadioSwitch> |
144 | 136 | <section v-if="setCustomPermissions" class="custom-permissions-group"> |
145 | | - <NcCheckboxRadioSwitch :disabled="!allowsFileDrop && share.type === SHARE_TYPES.SHARE_TYPE_LINK" :checked.sync="hasRead"> |
| 137 | + <NcCheckboxRadioSwitch :disabled="!allowsFileDrop && share.type === SHARE_TYPES.SHARE_TYPE_LINK" |
| 138 | + :checked.sync="hasRead"> |
146 | 139 | {{ t('file_sharing', 'Read') }} |
147 | 140 | </NcCheckboxRadioSwitch> |
148 | 141 | <NcCheckboxRadioSwitch v-if="isFolder" :disabled="!canSetCreate" :checked.sync="canCreate"> |
|
151 | 144 | <NcCheckboxRadioSwitch :disabled="!canSetEdit" :checked.sync="canEdit"> |
152 | 145 | {{ t('file_sharing', 'Update') }} |
153 | 146 | </NcCheckboxRadioSwitch> |
154 | | - <NcCheckboxRadioSwitch v-if="config.isResharingAllowed && share.type !== SHARE_TYPES.SHARE_TYPE_LINK" :disabled="!canSetReshare" :checked.sync="canReshare"> |
| 147 | + <NcCheckboxRadioSwitch v-if="config.isResharingAllowed && share.type !== SHARE_TYPES.SHARE_TYPE_LINK" |
| 148 | + :disabled="!canSetReshare" |
| 149 | + :checked.sync="canReshare"> |
155 | 150 | {{ t('file_sharing', 'Share') }} |
156 | 151 | </NcCheckboxRadioSwitch> |
157 | 152 | <NcCheckboxRadioSwitch v-if="!isPublicShare" :disabled="!canSetDownload" :checked.sync="canDownload"> |
@@ -667,7 +662,7 @@ export default { |
667 | 662 | } |
668 | 663 | }, |
669 | 664 | expandCustomPermissions() { |
670 | | - if (!this.advancedSectionAccordionExpanded) { |
| 665 | + if (!this.advancedSectionAccordionExpanded) { |
671 | 666 | this.advancedSectionAccordionExpanded = true |
672 | 667 | } |
673 | 668 | this.toggleCustomPermissions() |
@@ -951,11 +946,26 @@ export default { |
951 | 946 | } |
952 | 947 |
|
953 | 948 | ::v-deep label { |
| 949 | + display: flex; |
| 950 | + flex-wrap: wrap; |
954 | 951 |
|
955 | 952 | span { |
956 | 953 | display: flex; |
957 | | - flex-direction: column; |
| 954 | +
|
| 955 | + &:first-of-type { |
| 956 | + flex: 10%; |
| 957 | + } |
| 958 | +
|
| 959 | + &:last-of-type { |
| 960 | + flex: 90% |
| 961 | + } |
958 | 962 | } |
| 963 | +
|
| 964 | + small { |
| 965 | + padding-left: 10%; |
| 966 | + flex-basis: 100% !important; |
| 967 | + } |
| 968 | +
|
959 | 969 | } |
960 | 970 | } |
961 | 971 |
|
@@ -999,7 +1009,6 @@ export default { |
999 | 1009 | */ |
1000 | 1010 | span { |
1001 | 1011 | ::v-deep label { |
1002 | | - padding-left: 0 !important; |
1003 | 1012 | background-color: initial !important; |
1004 | 1013 | border: none !important; |
1005 | 1014 | } |
|
0 commit comments