Skip to content
Open
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
10 changes: 5 additions & 5 deletions extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
14 changes: 8 additions & 6 deletions static/navigation.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -40,3 +41,4 @@
width: 100%;
}
}