Skip to content

Commit b3d5a57

Browse files
authored
Merge pull request #27980 from nextcloud/enh/18683/improve-notcreatable-permissions-hint
Improve notcreatable permissions hint
2 parents 7f572c0 + 85b0df2 commit b3d5a57

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

apps/files/css/files.scss

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -834,9 +834,23 @@ table.dragshadow td.size {
834834
}
835835

836836
.notCreatable {
837-
padding-left: 12px;
838-
padding-top: 12px;
839-
color: var(--color-text-lighter);
837+
margin-left: 12px;
838+
margin-right: 44px;
839+
margin-top: 12px;
840+
color: var(--color-main-text);
841+
overflow: auto;
842+
min-width: 160px;
843+
height: 54px;
844+
845+
&:not(.hidden) {
846+
display: flex;
847+
}
848+
849+
.icon-alert-outline {
850+
top: -15px;
851+
position: relative;
852+
margin-right: 4px;
853+
}
840854
}
841855

842856
#quota {

apps/files/templates/list.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
</div>
66
<div id="file_action_panel"></div>
77
<div class="notCreatable notPublic hidden">
8+
<div class="icon-alert-outline"></div>
89
<?php p($l->t('You don’t have permission to upload or create files here'))?>
910
</div>
1011
<?php /* Note: the template attributes are here only for the public page. These are normally loaded

core/css/icons.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,8 @@ audio, canvas, embed, iframe, img, input, object, video {
359359
@include icon-black-white('disabled-users', 'actions', 1, true);
360360
@include icon-black-white('user-admin', 'actions', 1, true);
361361

362+
@include icon-black-white('alert-outline', 'actions', 1, true);
363+
362364
/* PLACES ------------------------------------------------------------------- */
363365
.icon-calendar {
364366
@include icon-color('calendar', 'places', $color-white, 1, true);

core/img/actions/alert-outline.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)