Skip to content

Commit

Permalink
Merge pull request qgis#396 from Xpirix/fix_mobile_scrollbar
Browse files Browse the repository at this point in the history
Limit roadmap schedule table width to 100%
  • Loading branch information
Xpirix authored Aug 8, 2024
2 parents a24bee8 + ebf6324 commit 9ad3861
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,8 @@ div

.right-ribbon .development::after
border-right: 3px solid #4D6370
border-top: 3px solid #4D6370
border-top: 3px solid #4D6370

.schedule-container
max-width: 100%
overflow: auto
4 changes: 3 additions & 1 deletion themes/hugo-bulma-blocks-theme/assets/sass/style.sass
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,6 @@ code
.language-select-container
background-color: #ecf1f4
border-radius: 10px
color: #4d6370 !important
color: #4d6370 !important
select
max-width: 50vw
40 changes: 21 additions & 19 deletions themes/hugo-bulma-blocks-theme/layouts/shortcodes/csv-table.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,26 @@
{{ else }}
{{ $data = .Inner | unmarshal }}
{{ end }}
<table class="roadmap">
<thead>
<tr>
{{ range index $data 0 }}
<th>{{ . }}</th>
{{ end }}
</tr>
</thead>
<tbody>
{{ range after 1 $data }}
<div class="schedule-container">
<table class="roadmap">
<thead>
<tr>
{{ range . }}
{{ $class := index (findRE ":rm-\\w+:" .) 0 }}
<td class="{{ trim $class ":" }}">
{{ . | replaceRE ":rm-\\w+:" "" }}
</td>
{{ end }}
{{ range index $data 0 }}
<th>{{ . }}</th>
{{ end }}
</tr>
{{ end }}
</tbody>
</table>
</thead>
<tbody>
{{ range after 1 $data }}
<tr>
{{ range . }}
{{ $class := index (findRE ":rm-\\w+:" .) 0 }}
<td class="{{ trim $class ":" }}">
{{ . | replaceRE ":rm-\\w+:" "" }}
</td>
{{ end }}
</tr>
{{ end }}
</tbody>
</table>
</div>

0 comments on commit 9ad3861

Please sign in to comment.