Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

2.5.12 (Unreleased)
---------------------
- Fix #436: Fix subpages box width on small screens

2.5.11 (July 8, 2026)
---------------------
- Enh #432: Add State badge to wiki page header
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Wiki",
"description": "Create and edit pages with this powerful tool. Build a collaborative knowledge base, view and share information with your colleagues.",
"keywords": ["wiki"],
"version": "2.5.11",
"version": "2.5.12",
"humhub": {
"minVersion": "1.18.1",
"maxVersion": "1.18"
Expand Down
35 changes: 26 additions & 9 deletions resources/css/humhub.wiki.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,16 @@
margin-left: 4px;
}
.layout-content-container .wiki-page-index {
width: 50%;
border: 1px solid var(--hh-wiki-border-color-content);
border-radius: var(--hh-wiki-border-radius);
padding: 3px 5px;
margin: 30px 0;
}
@media (min-width: 576px) {
.layout-content-container .wiki-page-index {
width: 50%;
}
}
.layout-content-container .wiki-page-index .nav {
padding: 0;
margin: 0;
Expand Down Expand Up @@ -190,7 +194,16 @@
border: 1px solid var(--hh-wiki-border-color-subpages);
padding: 15px 0;
margin-bottom: 10px;
width: 50%;
}
@media (min-width: 576px) {
.layout-content-container .wiki-page-content .wiki-sub-pages {
width: 75%;
}
}
@media (min-width: 768px) {
.layout-content-container .wiki-page-content .wiki-sub-pages {
width: 50%;
}
}
.layout-content-container .wiki-page-content .wiki-sub-pages ul.wiki-page-list {
margin-bottom: 0;
Expand Down Expand Up @@ -440,7 +453,6 @@
display: flex;
margin-bottom: 10px;
padding: 10px 10px;
display: block !important;
}
.wiki-page-content-header h3 {
font-size: 28px;
Expand Down Expand Up @@ -479,12 +491,17 @@
margin-right: 10px !important;
}
}
.wiki-page-content-header .wiki-search-form {
width: auto;
margin-right: 0 !important;
}
.wiki-page-content-header .wiki-page-content-header-actions {
white-space: normal;
@media (max-width: 575.98px) {
.wiki-page-content-header {
display: block !important;
}
.wiki-page-content-header .wiki-search-form {
width: auto;
margin-right: 0 !important;
}
.wiki-page-content-header .wiki-page-content-header-actions {
white-space: normal;
}
}

.wiki-page-header-wrapper p:last-child {
Expand Down
2 changes: 1 addition & 1 deletion resources/css/humhub.wiki.min.css

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions resources/css/humhub.wiki.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ $wiki-mobile-grid-breakpoints: 520px;
}

.wiki-page-index {
@include media-breakpoint-up(xs) {
@include media-breakpoint-up(sm) {
width: 50%;
}
border: 1px solid var(--hh-wiki-border-color-content);
Expand Down Expand Up @@ -270,7 +270,10 @@ $wiki-mobile-grid-breakpoints: 520px;
border: 1px solid var(--hh-wiki-border-color-subpages);
padding: 15px 0;
margin-bottom: 10px;
@include media-breakpoint-up(xs) {
@include media-breakpoint-up(sm) {
width: 75%;
}
@include media-breakpoint-up(md) {
width: 50%;
}

Expand Down Expand Up @@ -648,7 +651,7 @@ $wiki-mobile-grid-breakpoints: 520px;
}
}

@include media-breakpoint-down(xs) {
@include media-breakpoint-down(sm) {
display: block !important;
.wiki-search-form {
width: auto;
Expand Down
3 changes: 3 additions & 0 deletions widgets/PageListItemTitle.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ public function run()
&& ($this->maxLevel !== null && $this->level === $this->maxLevel)) {
if ($childrenCount = $this->service->getItemChildrenCount($this->item->id)) {
$this->titleInfo = Yii::t('WikiModule.base', '({n,plural,=1{+1 subpage}other{+{count} subpages}})', ['n' => $childrenCount, 'count' => $childrenCount]);
// Display only number on small screens
$this->titleInfo = '<span class="d-none d-sm-inline">' . $this->titleInfo . '</span>'
. '<span class="d-sm-none">(+' . $childrenCount . ')</span>';
}
}

Expand Down
Loading