Skip to content

Commit

Permalink
Merge pull request #28006 from nextcloud/backport/27980/stable20
Browse files Browse the repository at this point in the history
[stable20] Improve notcreatable permissions hint
  • Loading branch information
szaimen authored Jul 16, 2021
2 parents 04e6e38 + d955a3c commit 684b5d5
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
20 changes: 17 additions & 3 deletions apps/files/css/files.scss
Original file line number Diff line number Diff line change
Expand Up @@ -818,9 +818,23 @@ table.dragshadow td.size {
}

.notCreatable {
padding-left: 12px;
padding-top: 12px;
color: var(--color-text-lighter);
margin-left: 12px;
margin-right: 44px;
margin-top: 12px;
color: var(--color-main-text);
overflow: auto;
min-width: 160px;
height: 54px;

&:not(.hidden) {
display: flex;
}

.icon-alert-outline {
top: -15px;
position: relative;
margin-right: 4px;
}
}

#quota {
Expand Down
1 change: 1 addition & 0 deletions apps/files/templates/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
</div>
<div id="file_action_panel"></div>
<div class="notCreatable notPublic hidden">
<div class="icon-alert-outline"></div>
<?php p($l->t('You don’t have permission to upload or create files here'))?>
</div>
<?php /* Note: the template attributes are here only for the public page. These are normally loaded
Expand Down
2 changes: 2 additions & 0 deletions core/css/icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,8 @@ audio, canvas, embed, iframe, img, input, object, video {
@include icon-black-white('disabled-users', 'actions', 1, true);
@include icon-black-white('user-admin', 'actions', 1, true);

@include icon-black-white('alert-outline', 'actions', 1, true);

/* PLACES ------------------------------------------------------------------- */
.icon-calendar {
@include icon-color('calendar', 'places', $color-white, 1, true);
Expand Down
1 change: 1 addition & 0 deletions core/img/actions/alert-outline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 684b5d5

Please sign in to comment.