Skip to content

Commit 6014d22

Browse files
committed
Merge branch 'v.0.47.5' of github.com:getPublii/Publii into v.0.47.5
2 parents 1eef0a4 + 664ff95 commit 6014d22

5 files changed

Lines changed: 12 additions & 36 deletions

File tree

app/default-files/default-themes/simple/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [3.2.1.0] - 2026-01-06
4+
### Fixed
5+
- Fixed an issue where the search popup would not open if the input element was missing
6+
37
## [3.2.0.0] - 2025-11-04
48
### Added
59
- Added new variable fonts

app/default-files/default-themes/simple/assets/css/main.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ html {
5959
-webkit-font-smoothing: antialiased;
6060
-moz-osx-font-smoothing: grayscale;
6161
scroll-behavior: smooth;
62+
scrollbar-gutter: stable;
6263
}
6364
html.no-scroll {
6465
overflow: hidden;

app/default-files/default-themes/simple/assets/js/scripts.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,16 +456,18 @@ window.addEventListener('scroll', () => {
456456
// Load search input area
457457
const searchButton = document.querySelector('.js-search-btn');
458458
const searchOverlay = document.querySelector('.js-search-overlay');
459-
const searchInput = document.querySelector('input[type="search"]');
460459

461-
if (searchButton && searchOverlay && searchInput) {
460+
if (searchButton && searchOverlay) {
462461
searchButton.addEventListener('click', (event) => {
463462
event.stopPropagation();
464463
searchOverlay.classList.toggle('expanded');
465464

466465
if (searchOverlay.classList.contains('expanded')) {
467466
setTimeout(() => {
468-
searchInput.focus();
467+
const element = searchOverlay.querySelector('input, button');
468+
if (element) {
469+
element.focus();
470+
}
469471
}, 60);
470472
}
471473
});

app/default-files/default-themes/simple/assets/js/scripts.min.js

Lines changed: 1 addition & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/default-files/default-themes/simple/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Simple",
3-
"version": "3.2.0.0",
3+
"version": "3.2.1.0",
44
"author": "TidyCustoms <https://tidycustoms.net/>",
55
"menus": {
66
"mainMenu": {

0 commit comments

Comments
 (0)