diff --git a/src/addons/block/blogtags/components/blogtags/blogtags.scss b/src/addons/block/blogtags/components/blogtags/blogtags.scss index 0dbdc11a1..9554c90a9 100644 --- a/src/addons/block/blogtags/components/blogtags/blogtags.scss +++ b/src/addons/block/blogtags/components/blogtags/blogtags.scss @@ -1,9 +1,7 @@ :host .core-block-content ::ng-deep { ul.inline-list { - font-size: 80%; list-style: none; - margin-left: 0; - margin-right: 0; + margin: 0; -webkit-padding-start: 0; li { diff --git a/src/addons/block/tags/components/tags/tags.scss b/src/addons/block/tags/components/tags/tags.scss index 658f42de8..e6141bf4e 100644 --- a/src/addons/block/tags/components/tags/tags.scss +++ b/src/addons/block/tags/components/tags/tags.scss @@ -1,11 +1,9 @@ :host .core-block-content ::ng-deep { .tag_cloud { - font-size: 80%; text-align: center; ul.inline-list { list-style: none; - margin-left: 0; - margin-right: 0; + margin: 0; -webkit-padding-start: 0; li { diff --git a/src/addons/mod/glossary/components/index/addon-mod-glossary-index.html b/src/addons/mod/glossary/components/index/addon-mod-glossary-index.html index b32270973..4f544012e 100644 --- a/src/addons/mod/glossary/components/index/addon-mod-glossary-index.html +++ b/src/addons/mod/glossary/components/index/addon-mod-glossary-index.html @@ -34,7 +34,7 @@ -

{{ 'addon.mod_glossary.entriestobesynced' | translate }}

+

{{ 'addon.mod_glossary.entriestobesynced' | translate }}

-

{{ getDivider!(entry) }}

+

{{ getDivider!(entry) }}

diff --git a/src/core/features/course/components/course-format/course-format.html b/src/core/features/course/components/course-format/course-format.html index 2d8cd3391..323216634 100644 --- a/src/core/features/course/components/course-format/course-format.html +++ b/src/core/features/course/components/course-format/course-format.html @@ -24,7 +24,7 @@ -
+
diff --git a/src/core/features/course/components/course-format/course-format.ts b/src/core/features/course/components/course-format/course-format.ts index c43830b42..4e0be0612 100644 --- a/src/core/features/course/components/course-format/course-format.ts +++ b/src/core/features/course/components/course-format/course-format.ts @@ -92,6 +92,7 @@ export class CoreCourseFormatComponent implements OnInit, OnChanges, OnDestroy { selectedSection?: CoreCourseSection; previousSection?: CoreCourseSection; nextSection?: CoreCourseSection; + hasPreviousOrNextSections = false; allSectionsId: number = CoreCourseProvider.ALL_SECTIONS_ID; stealthModulesSectionId: number = CoreCourseProvider.STEALTH_MODULES_SECTION_ID; loaded = false; @@ -488,6 +489,8 @@ export class CoreCourseFormatComponent implements OnInit, OnChanges, OnDestroy { this.showMoreActivities(); } + this.hasPreviousOrNextSections = !!this.previousSection || !!this.nextSection; + // Scroll to module if needed. Give more priority to the input. const moduleIdToScroll = this.moduleId && previousValue === undefined ? this.moduleId : moduleId; if (moduleIdToScroll) { diff --git a/src/core/features/editor/components/rich-text-editor/rich-text-editor.ts b/src/core/features/editor/components/rich-text-editor/rich-text-editor.ts index eb4010db4..66b451146 100644 --- a/src/core/features/editor/components/rich-text-editor/rich-text-editor.ts +++ b/src/core/features/editor/components/rich-text-editor/rich-text-editor.ts @@ -40,6 +40,7 @@ import { CoreEventFormActionData, CoreEventObserver, CoreEvents, CoreSingleTimeE import { CoreEditorOffline } from '../../services/editor-offline'; import { CoreComponentsRegistry } from '@singletons/components-registry'; import { CoreLoadingComponent } from '@components/loading/loading'; +import { CoreScreen } from '@services/screen'; /** * Component to display a rich text editor if enabled. @@ -150,7 +151,7 @@ export class CoreEditorRichTextEditorComponent implements OnInit, AfterContentIn */ ngOnInit(): void { this.canScanQR = CoreUtils.canScanQR(); - this.isPhone = Platform.is('mobile') && !Platform.is('tablet'); + this.isPhone = CoreScreen.isMobile; this.toolbarHidden = this.isPhone; this.direction = Platform.isRTL ? 'rtl' : 'ltr'; } @@ -161,6 +162,8 @@ export class CoreEditorRichTextEditorComponent implements OnInit, AfterContentIn async ngAfterContentInit(): Promise { this.rteEnabled = await CoreDomUtils.isRichTextEditorEnabled(); + await this.waitLoadingsDone(); + // Setup the editor. this.editorElement = this.editor?.nativeElement as HTMLDivElement; this.setContent(this.control?.value); @@ -175,8 +178,6 @@ export class CoreEditorRichTextEditorComponent implements OnInit, AfterContentIn // Use paragraph on enter. document.execCommand('DefaultParagraphSeparator', false, 'p'); - await this.waitLoadingsDone(); - this.maximizeEditorSize(); this.setListeners(); @@ -1052,6 +1053,7 @@ export class CoreEditorRichTextEditorComponent implements OnInit, AfterContentIn */ protected async windowResized(): Promise { await CoreDomUtils.waitForResizeDone(); + this.isPhone = CoreScreen.isMobile; this.maximizeEditorSize(); this.updateToolbarButtons();