Skip to content

Commit e2aef97

Browse files
committed
Adjust section titles in grid and move 'title' attribute to cover whole grid box.
1 parent 7c91e87 commit e2aef97

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Version 402.2.4 - In development
77
2. Fix 'Unable to update defaultimageresizemethod setting' - #211.
88
3. Use section anchors in links when editing.
99
4. Add badges to grid - #215.
10+
5. Adjust section titles in grid and move 'title' attribute to cover whole grid box.
1011

1112
Version 402.2.3 - 08/04/2024
1213
----------------------------

templates/grid.mustache

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,21 +73,24 @@
7373
{{/sectionbreakheading}}
7474
<div class="thegrid d-flex flex-wrap grid-justify-{{gridjustification}}">
7575
{{/sectionbreak}}
76-
<div id="section-{{number}}" class="grid-section card{{#iscurrent}} currentgridsection{{/iscurrent}}">
76+
<div id="section-{{number}}" class="grid-section card{{#iscurrent}} currentgridsection{{/iscurrent}}" title="{{sectionname}}">
7777
{{^popup}}
7878
{{#hasbadge}}<div class="grid-section-inner">{{/hasbadge}}
7979
{{^hasbadge}}<a class="grid-section-inner" href="{{sectionurl}}">{{/hasbadge}}
8080
{{/popup}}
8181
{{#popup}}
8282
<div class="grid-modal grid-section-inner d-flex flex-column h-100 justify-content-between" data-toggle="modal" data-target="#gridPopup" data-section="{{number}}" tabindex="0">
8383
{{/popup}}
84-
<div class="card-header text-truncate h-100" title="{{sectionname}}">{{{sectionname}}}{{#hasbadge}}
84+
<div class="card-header text-truncate h-100">
85+
<h3 class="h4">{{{sectionname}}}</h3>
86+
{{#hasbadge}}
8587
<div data-region="sectionbadges" class="sectionbadges d-flex">
8688
{{$ core_courseformat/local/content/section/badges }}
8789
{{> core_courseformat/local/content/section/badges }}
8890
{{/ core_courseformat/local/content/section/badges }}
8991
</div>
90-
{{/hasbadge}}</div>
92+
{{/hasbadge}}
93+
</div>
9194
{{#imageuri}}
9295
<div class="grid-image card-img-bottom text-center">
9396
<img src="{{imageuri}}" alt="{{imagealttext}}" loading="lazy">
@@ -121,7 +124,7 @@
121124
<div class="modal-dialog modal-dialog-scrollable">
122125
<div class="modal-content">
123126
<div class="modal-header">
124-
<h5 class="modal-title" id="gridPopupLabel">Section X</h5>
127+
<h2 class="modal-title h4" id="gridPopupLabel">Section X</h2>
125128
<button type="button" class="close" data-dismiss="modal" aria-label="{{#str}}close, form{{/str}}">
126129
<span class="fa fa-times" aria-hidden="true"></span>
127130
</button>

0 commit comments

Comments
 (0)