From 61848a591df84921a0f47d484f90017fee1cb54b Mon Sep 17 00:00:00 2001 From: SHU-red Date: Sun, 26 Oct 2025 11:53:22 +0000 Subject: [PATCH 1/2] Fixed defaults --- extension.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/extension.php b/extension.php index 8fc7e8f..437bbc5 100644 --- a/extension.php +++ b/extension.php @@ -112,22 +112,22 @@ private function generateNextEntryButton(): string { } public function showPreviousEntryButton(): bool { - return $this->getUserConfigurationValue('show_previous_entry_button'); + return (bool) ($this->getUserConfigurationValue('show_previous_entry_button') ?? true); } public function showSeeOnWebSiteButton(): bool { - return $this->getUserConfigurationValue('show_see_on_website_button'); + return (bool) ($this->getUserConfigurationValue('show_see_on_website_button') ?? true); } public function showUpButton(): bool { - return $this->getUserConfigurationValue('show_up_button'); + return (bool) ($this->getUserConfigurationValue('show_up_button') ?? true); } public function showFavoriteButton(): bool { - return $this->getUserConfigurationValue('show_favorite_button'); + return (bool) ($this->getUserConfigurationValue('show_favorite_button') ?? true); } public function showNextEntryButton(): bool { - return $this->getUserConfigurationValue('show_next_entry_button'); + return (bool) ($this->getUserConfigurationValue('show_next_entry_button') ?? true); } } From 7153837efa1bf81afec8d6a82df5a2a4deeacc15 Mon Sep 17 00:00:00 2001 From: SHU-red Date: Sun, 26 Oct 2025 14:52:11 +0000 Subject: [PATCH 2/2] Try to improve formatting --- static/navigation.css | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/static/navigation.css b/static/navigation.css index 71cc67e..08cfa52 100644 --- a/static/navigation.css +++ b/static/navigation.css @@ -10,25 +10,26 @@ table-layout: fixed; padding-bottom: env(safe-area-inset-bottom); z-index: 50; + background-color: var(--background-color-light); + border-top: 1px solid var(--border-color); } #nav_entries_enhanced button { background-color: transparent; display: table-cell; - height: 3rem; + height: 3.5rem; /* slightly smaller to fit 5 in 300px */ + width: 20%; /* each button takes exactly 1/5 of width */ border: 0; cursor: pointer; + padding: 0.25rem; /* small internal padding */ + text-align: center; + vertical-align: middle; } #nav_entries_enhanced button:hover { background-color: var(--frss-darken-background-hover-transparent); } -#nav_entries_enhanced { - background-color: var(--background-color-light); - border-top: 1px solid var(--border-color); -} - @media print { #nav_entries_enhanced { display: none; @@ -40,3 +41,4 @@ width: 100%; } } +