diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-02-16 12:00:07 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-02-28 17:26:36 +0100 |
commit | 542dc2b3357d3e71b93ccd887ae19c564b9587e4 (patch) | |
tree | 933acf4744e642c05e816f52983714fe967e2544 /apps/files | |
parent | 0cfdf4748f248e1b55fc459a05e7782a1e585716 (diff) | |
download | nextcloud-server-542dc2b3357d3e71b93ccd887ae19c564b9587e4.tar.gz nextcloud-server-542dc2b3357d3e71b93ccd887ae19c564b9587e4.zip |
Fix upload button visible on read-only folders
The div that contains the elements related to the creation of new files,
and thus the upload button, is always present in the DOM; it is hidden
or shown based on the folder permissions by adding or removing the
"hidden" CSS class. However, as the other CSS classes for the div are
"actions" and "creatable" and a "display: flex" rule was defined for
".actions.creatable" below the "display: none" rule for
".actions.hidden" the last one took precedence and the div ended being
always visible, even if the "hidden" CSS class was set. Now the rules
for the ".actions.hidden" selector are defined below the rules for the
".actions.creatable" selector and thus the "display: none" rule is
applied as expected.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/css/files.scss | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files/css/files.scss b/apps/files/css/files.scss index b29ce9ea950..1be58cff5a1 100644 --- a/apps/files/css/files.scss +++ b/apps/files/css/files.scss @@ -16,7 +16,6 @@ .actions .button a:active { color: #333; } -.actions.hidden { display: none; } .actions.creatable { position: relative; @@ -27,6 +26,10 @@ } } +.actions.hidden { + display: none; +} + #trash { margin-right: 8px; float: right; |