From 60d8572d4e240692b67a1219fb7bd507996120d2 Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Wed, 6 Jul 2022 10:17:04 +0800 Subject: [PATCH] MDL-74813 filepicker: Replace the dnd gif animation with a static icon --- lib/outputrenderers.php | 12 ++++++++++-- .../filemanager_page_generallayout.mustache | 12 ++++++++++-- theme/boost/scss/moodle/filemanager.scss | 2 +- theme/boost/style/moodle.css | 4 ++-- theme/classic/style/moodle.css | 4 ++-- 5 files changed, 25 insertions(+), 9 deletions(-) diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index 09ad2861604..6dd53778ff0 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -2725,10 +2725,18 @@ EOD; $html .= <<
-
$currentfile
$strdndenabled
+
$currentfile +
$strdndenabled
+
+
+
-
{$strdroptoupload}
+
+
{$strdroptoupload}
+
+
+
EOD; } diff --git a/lib/templates/filemanager_page_generallayout.mustache b/lib/templates/filemanager_page_generallayout.mustache index dcdc35661a9..b4ed879b614 100644 --- a/lib/templates/filemanager_page_generallayout.mustache +++ b/lib/templates/filemanager_page_generallayout.mustache @@ -80,9 +80,17 @@
-
{{#str}}dndenabled_inbox{{/str}}
+
{{#str}}dndenabled_inbox{{/str}}
+
+ +
+
+
+
{{#str}}droptoupload{{/str}}
+
+ +
-
{{#str}}droptoupload{{/str}}
{{#pix}}i/loading_small{{/pix}}{{#str}}loadinghelp{{/str}}
diff --git a/theme/boost/scss/moodle/filemanager.scss b/theme/boost/scss/moodle/filemanager.scss index 6bbad444498..a733a258433 100644 --- a/theme/boost/scss/moodle/filemanager.scss +++ b/theme/boost/scss/moodle/filemanager.scss @@ -839,11 +839,11 @@ a.ygtvspacer:hover { } .dndupload-arrow { - background: url([[pix:theme|fp/dnd_arrow]]) center no-repeat; width: 100%; height: 80px; position: absolute; top: 5px; + color: $gray-500; } .fitem.disabled .filepicker-container, diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 8746705dcc5..2eecdcfdcb7 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -14993,11 +14993,11 @@ a.ygtvspacer:hover { display: block; } .dndupload-arrow { - background: url([[pix:theme|fp/dnd_arrow]]) center no-repeat; width: 100%; height: 80px; position: absolute; - top: 5px; } + top: 5px; + color: #8f959e; } .fitem.disabled .filepicker-container, .fitem.disabled .fm-empty-container { diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index bd94ea59978..4bfc5899ff5 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -15217,11 +15217,11 @@ a.ygtvspacer:hover { display: block; } .dndupload-arrow { - background: url([[pix:theme|fp/dnd_arrow]]) center no-repeat; width: 100%; height: 80px; position: absolute; - top: 5px; } + top: 5px; + color: #8f959e; } .fitem.disabled .filepicker-container, .fitem.disabled .fm-empty-container {