From be4bfc5a8d90b7938e8a857a6705915e4248dbe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Fri, 25 Feb 2022 16:45:31 +0100 Subject: [PATCH 1/3] MOBILE-3814 style: Limit page width on some content pages --- src/addons/blog/pages/entries/entries.html | 5 +- .../addon-calendar-upcoming-events.html | 58 +-- src/addons/calendar/pages/day/day.html | 65 +-- .../messages/pages/discussion/discussion.html | 5 +- .../addon-mod-assign-submission.html | 2 +- .../components/index/index.html | 2 +- .../index/addon-mod-book-index.html | 2 +- .../index/addon-mod-chat-index.html | 2 +- .../index/addon-mod-choice-index.html | 109 ++--- src/addons/mod/feedback/pages/form/form.html | 2 +- .../index/addon-mod-folder-index.html | 2 +- .../forum/pages/discussion/discussion.html | 2 +- .../mod/glossary/pages/entry/entry.html | 2 +- .../index/addon-mod-imscp-index.html | 2 +- .../index/addon-mod-lesson-index.html | 2 +- .../mod/lesson/pages/player/player.html | 2 +- .../lesson/pages/user-retake/user-retake.html | 2 +- .../components/index/addon-mod-lti-index.html | 2 +- .../index/addon-mod-page-index.html | 2 +- .../index/addon-mod-quiz-index.html | 2 +- .../mod/quiz/pages/attempt/attempt.html | 2 +- src/addons/mod/quiz/pages/player/player.html | 2 +- src/addons/mod/quiz/pages/review/review.html | 2 +- .../index/addon-mod-scorm-index.html | 4 +- .../index/addon-mod-survey-index.html | 2 +- .../index/addon-mod-wiki-index.html | 2 +- .../addon-mod-workshop-assessment.html | 2 +- .../index/addon-mod-workshop-index.html | 2 +- .../addon-mod-workshop-submission.html | 2 +- src/addons/notes/pages/list/list.html | 2 +- src/addons/notifications/pages/list/list.html | 97 ++-- .../pages/course-storage/course-storage.html | 2 +- .../courses-storage/courses-storage.html | 2 +- src/core/components/loading/loading.scss | 6 + .../pages/module-preview/module-preview.html | 2 +- .../change-password/change-password.html | 2 +- .../login/pages/credentials/credentials.html | 4 +- .../pages/email-signup/email-signup.html | 432 +++++++++--------- .../forgotten-password.html | 67 +-- .../login/pages/reconnect/reconnect.html | 166 +++---- src/core/features/login/pages/site/site.html | 174 +++---- src/core/features/login/pages/site/site.scss | 10 +- .../features/login/pages/sites/sites.html | 2 +- .../features/settings/pages/about/about.html | 2 +- src/core/features/settings/pages/dev/dev.html | 2 +- .../settings/pages/deviceinfo/deviceinfo.html | 2 +- .../settings/pages/general/general.html | 11 +- .../settings/pages/licenses/licenses.html | 2 +- .../pages/space-usage/space-usage.html | 2 +- .../synchronization/synchronization.html | 2 +- 50 files changed, 653 insertions(+), 630 deletions(-) diff --git a/src/addons/blog/pages/entries/entries.html b/src/addons/blog/pages/entries/entries.html index 41697ecd3..d1a56b3c0 100644 --- a/src/addons/blog/pages/entries/entries.html +++ b/src/addons/blog/pages/entries/entries.html @@ -15,7 +15,7 @@ - + {{ 'addon.blog.showonlyyourentries' | translate }} @@ -68,7 +68,8 @@
- {{entry.lastmodified | + {{entry.lastmodified + | coreTimeAgo}}
diff --git a/src/addons/calendar/components/upcoming-events/addon-calendar-upcoming-events.html b/src/addons/calendar/components/upcoming-events/addon-calendar-upcoming-events.html index 143eec51c..23283d242 100644 --- a/src/addons/calendar/components/upcoming-events/addon-calendar-upcoming-events.html +++ b/src/addons/calendar/components/upcoming-events/addon-calendar-upcoming-events.html @@ -1,36 +1,38 @@ - + - - - - - - - {{ 'addon.calendar.type' + event.formattedType | translate }} - {{ event.iconTitle }} - -

- -

-

-
- - - {{ 'core.notsent' | translate }} - - - - {{ 'core.deletedoffline' | translate }} - -
+ + + + + + + + {{ 'addon.calendar.type' + event.formattedType | translate }} + {{ event.iconTitle }} + +

+ +

+

+
+ + + {{ 'core.notsent' | translate }} + + + + {{ 'core.deletedoffline' | translate }} + +
+
diff --git a/src/addons/calendar/pages/day/day.html b/src/addons/calendar/pages/day/day.html index d245f7258..e3f7b3766 100644 --- a/src/addons/calendar/pages/day/day.html +++ b/src/addons/calendar/pages/day/day.html @@ -50,7 +50,7 @@ - + @@ -65,36 +65,39 @@ - - - - - - - - {{ 'addon.calendar.type' + event.formattedType | translate }} - {{ event.iconTitle }} - -

- -

-

-
- - - {{ 'core.notsent' | translate }} - - - - {{ 'core.deletedoffline' | translate }} - -
+ + + + + + + + + {{ 'addon.calendar.type' + event.formattedType | translate }} + {{ event.iconTitle + }} + +

+ +

+

+
+ + + {{ 'core.notsent' | translate }} + + + + {{ 'core.deletedoffline' | translate }} + +
+
diff --git a/src/addons/messages/pages/discussion/discussion.html b/src/addons/messages/pages/discussion/discussion.html index fc9dd7c3c..7427dbd18 100644 --- a/src/addons/messages/pages/discussion/discussion.html +++ b/src/addons/messages/pages/discussion/discussion.html @@ -69,7 +69,8 @@

{{ title }}

- +

{{ message.timecreated | coreFormatDate: "strftimedayshort" }} @@ -157,7 +158,7 @@ {{ 'addon.messages.acceptandaddcontact' | translate }} - + {{ 'addon.messages.decline' | translate }} diff --git a/src/addons/mod/assign/components/submission/addon-mod-assign-submission.html b/src/addons/mod/assign/components/submission/addon-mod-assign-submission.html index c8a116590..c2e5b2ad1 100644 --- a/src/addons/mod/assign/components/submission/addon-mod-assign-submission.html +++ b/src/addons/mod/assign/components/submission/addon-mod-assign-submission.html @@ -1,4 +1,4 @@ - + - + - + - + +
+ + + - - - - - - - - - -

{{ 'addon.mod_choice.previewonly' | translate:{$a: openTimeReadable} }}

-

{{ 'addon.mod_choice.notopenyet' | translate:{$a: openTimeReadable} }}

-
-
-
- - - - - -

- {{ 'addon.mod_choice.yourselection' | translate }} - - -

-

{{ 'addon.mod_choice.expired' | translate:{$a: closeTimeReadable} }}

-
-
-
- - - - - - {{ publishInfo | translate }} - - - - - - - + + + + - +

{{ 'addon.mod_choice.previewonly' | translate:{$a: openTimeReadable} }}

+

{{ 'addon.mod_choice.notopenyet' | translate:{$a: openTimeReadable} }}

-
-
- - - - - - - - -
+ + + + + +

+ {{ 'addon.mod_choice.yourselection' | translate }} + + +

+

{{ 'addon.mod_choice.expired' | translate:{$a: closeTimeReadable} }}

+
+
+
+ + + + + + {{ publishInfo | translate }} + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/src/addons/mod/feedback/pages/form/form.html b/src/addons/mod/feedback/pages/form/form.html index 99d48dd4e..5133f7347 100644 --- a/src/addons/mod/feedback/pages/form/form.html +++ b/src/addons/mod/feedback/pages/form/form.html @@ -12,7 +12,7 @@ - + diff --git a/src/addons/mod/folder/components/index/addon-mod-folder-index.html b/src/addons/mod/folder/components/index/addon-mod-folder-index.html index fd09820a8..e4c02d9d6 100644 --- a/src/addons/mod/folder/components/index/addon-mod-folder-index.html +++ b/src/addons/mod/folder/components/index/addon-mod-folder-index.html @@ -6,7 +6,7 @@ - + - + diff --git a/src/addons/mod/glossary/pages/entry/entry.html b/src/addons/mod/glossary/pages/entry/entry.html index c68402e12..3965b0f64 100644 --- a/src/addons/mod/glossary/pages/entry/entry.html +++ b/src/addons/mod/glossary/pages/entry/entry.html @@ -16,7 +16,7 @@ - + diff --git a/src/addons/mod/imscp/components/index/addon-mod-imscp-index.html b/src/addons/mod/imscp/components/index/addon-mod-imscp-index.html index 0f43d70d2..9d025fe8d 100644 --- a/src/addons/mod/imscp/components/index/addon-mod-imscp-index.html +++ b/src/addons/mod/imscp/components/index/addon-mod-imscp-index.html @@ -6,7 +6,7 @@ - + - + diff --git a/src/addons/mod/lesson/pages/player/player.html b/src/addons/mod/lesson/pages/player/player.html index adb7dd441..5e49e931a 100644 --- a/src/addons/mod/lesson/pages/player/player.html +++ b/src/addons/mod/lesson/pages/player/player.html @@ -18,7 +18,7 @@ - + diff --git a/src/addons/mod/lesson/pages/user-retake/user-retake.html b/src/addons/mod/lesson/pages/user-retake/user-retake.html index 872b6577a..6b90ad1b0 100644 --- a/src/addons/mod/lesson/pages/user-retake/user-retake.html +++ b/src/addons/mod/lesson/pages/user-retake/user-retake.html @@ -13,7 +13,7 @@ - +
diff --git a/src/addons/mod/lti/components/index/addon-mod-lti-index.html b/src/addons/mod/lti/components/index/addon-mod-lti-index.html index a85613113..1ab132e1e 100644 --- a/src/addons/mod/lti/components/index/addon-mod-lti-index.html +++ b/src/addons/mod/lti/components/index/addon-mod-lti-index.html @@ -6,7 +6,7 @@ - + - + - + - + diff --git a/src/addons/mod/quiz/pages/player/player.html b/src/addons/mod/quiz/pages/player/player.html index 94d0aa3be..f34cf4c47 100644 --- a/src/addons/mod/quiz/pages/player/player.html +++ b/src/addons/mod/quiz/pages/player/player.html @@ -31,7 +31,7 @@ - + {{ 'addon.mod_quiz.startattempt' | translate }} diff --git a/src/addons/mod/quiz/pages/review/review.html b/src/addons/mod/quiz/pages/review/review.html index 38286d18a..a7aa60562 100644 --- a/src/addons/mod/quiz/pages/review/review.html +++ b/src/addons/mod/quiz/pages/review/review.html @@ -19,7 +19,7 @@ - + diff --git a/src/addons/mod/scorm/components/index/addon-mod-scorm-index.html b/src/addons/mod/scorm/components/index/addon-mod-scorm-index.html index 953256c40..fb33799bb 100644 --- a/src/addons/mod/scorm/components/index/addon-mod-scorm-index.html +++ b/src/addons/mod/scorm/components/index/addon-mod-scorm-index.html @@ -6,7 +6,7 @@ - + -
+
diff --git a/src/addons/mod/survey/components/index/addon-mod-survey-index.html b/src/addons/mod/survey/components/index/addon-mod-survey-index.html index 431d04f34..8c20281fe 100644 --- a/src/addons/mod/survey/components/index/addon-mod-survey-index.html +++ b/src/addons/mod/survey/components/index/addon-mod-survey-index.html @@ -6,7 +6,7 @@ - + - + + diff --git a/src/addons/mod/workshop/components/index/addon-mod-workshop-index.html b/src/addons/mod/workshop/components/index/addon-mod-workshop-index.html index 7ce927fb2..15e6f16dd 100644 --- a/src/addons/mod/workshop/components/index/addon-mod-workshop-index.html +++ b/src/addons/mod/workshop/components/index/addon-mod-workshop-index.html @@ -6,7 +6,7 @@ - + diff --git a/src/addons/mod/workshop/components/submission/addon-mod-workshop-submission.html b/src/addons/mod/workshop/components/submission/addon-mod-workshop-submission.html index f69d312a9..ee7f08609 100644 --- a/src/addons/mod/workshop/components/submission/addon-mod-workshop-submission.html +++ b/src/addons/mod/workshop/components/submission/addon-mod-workshop-submission.html @@ -1,4 +1,4 @@ - +
diff --git a/src/addons/notes/pages/list/list.html b/src/addons/notes/pages/list/list.html index e3a373bbe..db1ee143d 100644 --- a/src/addons/notes/pages/list/list.html +++ b/src/addons/notes/pages/list/list.html @@ -30,7 +30,7 @@ - + diff --git a/src/addons/notifications/pages/list/list.html b/src/addons/notifications/pages/list/list.html index 0630a22d2..17f97fcf5 100644 --- a/src/addons/notifications/pages/list/list.html +++ b/src/addons/notifications/pages/list/list.html @@ -16,64 +16,67 @@ -
- - - - - {{ 'addon.notifications.markallread' | translate }} - -
+
- - + + + + + {{ 'addon.notifications.markallread' | translate }} + +
+ + + - - - - - + + + + + - + - -

- + +

+ + +

+

{{ notification.userfromfullname }}

+
+ + {{ notification.timecreated | coreDateDayOrTime }} + + + + +
+ + + -

-

{{ notification.userfromfullname }}

-
- - {{ notification.timecreated | coreDateDayOrTime }} - - - - -
- - - - - - - - -
+
+
+ + + +
-
diff --git a/src/addons/storagemanager/pages/course-storage/course-storage.html b/src/addons/storagemanager/pages/course-storage/course-storage.html index bd058183d..47f5e7b6c 100644 --- a/src/addons/storagemanager/pages/course-storage/course-storage.html +++ b/src/addons/storagemanager/pages/course-storage/course-storage.html @@ -9,7 +9,7 @@ - +

{{ 'addon.storagemanager.courseinfo' | translate }}

diff --git a/src/addons/storagemanager/pages/courses-storage/courses-storage.html b/src/addons/storagemanager/pages/courses-storage/courses-storage.html index beb388d23..93aa52341 100644 --- a/src/addons/storagemanager/pages/courses-storage/courses-storage.html +++ b/src/addons/storagemanager/pages/courses-storage/courses-storage.html @@ -9,7 +9,7 @@ - +

{{ 'addon.storagemanager.alldata' | translate }}

diff --git a/src/core/components/loading/loading.scss b/src/core/components/loading/loading.scss index a843495ec..1f704d0e6 100644 --- a/src/core/components/loading/loading.scss +++ b/src/core/components/loading/loading.scss @@ -81,6 +81,12 @@ flex-direction: column; } + &.list-item-limited-width .core-loading-content { + max-width: var(--list-item--max-width); + margin-left: auto !important; + margin-right: auto !important; + } + &.safe-area-padding:not(.core-loading-inline) .core-loading-content, &.safe-area-padding-horizontal:not(.core-loading-inline) .core-loading-content { @include safe-area-padding-horizontal(0px, 0px); diff --git a/src/core/features/course/pages/module-preview/module-preview.html b/src/core/features/course/pages/module-preview/module-preview.html index cd47cd96d..ee720ffd2 100644 --- a/src/core/features/course/pages/module-preview/module-preview.html +++ b/src/core/features/course/pages/module-preview/module-preview.html @@ -22,7 +22,7 @@ - +
diff --git a/src/core/features/login/pages/change-password/change-password.html b/src/core/features/login/pages/change-password/change-password.html index b36619a1b..7b808cbd7 100644 --- a/src/core/features/login/pages/change-password/change-password.html +++ b/src/core/features/login/pages/change-password/change-password.html @@ -16,7 +16,7 @@ - + diff --git a/src/core/features/login/pages/credentials/credentials.html b/src/core/features/login/pages/credentials/credentials.html index 2335e3cca..61d29ffbf 100644 --- a/src/core/features/login/pages/credentials/credentials.html +++ b/src/core/features/login/pages/credentials/credentials.html @@ -16,7 +16,7 @@ - +