mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 11:25:29 -04:00
Use smaller icons on web UI
This commit is contained in:
parent
91561ecd6b
commit
6ab885499c
Binary file not shown.
Before Width: | Height: | Size: 18 KiB |
BIN
public/img/icons/icon_x96.png
Normal file
BIN
public/img/icons/icon_x96.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
@ -2,6 +2,11 @@
|
|||||||
"name": "Mango",
|
"name": "Mango",
|
||||||
"description": "Mango: A self-hosted manga server and web reader",
|
"description": "Mango: A self-hosted manga server and web reader",
|
||||||
"icons": [
|
"icons": [
|
||||||
|
{
|
||||||
|
"src": "/img/icons/icon_x96.png",
|
||||||
|
"sizes": "96x96",
|
||||||
|
"type": "image/png"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"src": "/img/icons/icon_x192.png",
|
"src": "/img/icons/icon_x192.png",
|
||||||
"sizes": "192x192",
|
"sizes": "192x192",
|
||||||
|
@ -108,7 +108,7 @@ class Entry
|
|||||||
end
|
end
|
||||||
|
|
||||||
def cover_url
|
def cover_url
|
||||||
return "#{Config.current.base_url}img/icons/icon.png" if @err_msg
|
return "#{Config.current.base_url}img/icons/icon_x192.png" if @err_msg
|
||||||
|
|
||||||
unless @book.entry_cover_url_cache
|
unless @book.entry_cover_url_cache
|
||||||
TitleInfo.new @book.dir do |info|
|
TitleInfo.new @book.dir do |info|
|
||||||
|
@ -411,7 +411,7 @@ class Title
|
|||||||
cached_cover_url = @cached_cover_url
|
cached_cover_url = @cached_cover_url
|
||||||
return cached_cover_url unless cached_cover_url.nil?
|
return cached_cover_url unless cached_cover_url.nil?
|
||||||
|
|
||||||
url = "#{Config.current.base_url}img/icons/icon.png"
|
url = "#{Config.current.base_url}img/icons/icon_x192.png"
|
||||||
readable_entries = @entries.select &.err_msg.nil?
|
readable_entries = @entries.select &.err_msg.nil?
|
||||||
if readable_entries.size > 0
|
if readable_entries.size > 0
|
||||||
url = readable_entries[0].cover_url
|
url = readable_entries[0].cover_url
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
<div class="uk-navbar-toggle" uk-navbar-toggle-icon="uk-navbar-toggle-icon" uk-toggle="target: #mobile-nav"></div>
|
<div class="uk-navbar-toggle" uk-navbar-toggle-icon="uk-navbar-toggle-icon" uk-toggle="target: #mobile-nav"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="uk-navbar-left uk-visible@m">
|
<div class="uk-navbar-left uk-visible@m">
|
||||||
<a class="uk-navbar-item uk-logo" href="<%= base_url %>"><img src="<%= base_url %>img/icons/icon.png" style="width:90px;height:90px;"></a>
|
<a class="uk-navbar-item uk-logo" href="<%= base_url %>"><img src="<%= base_url %>img/icons/icon_x96.png" style="width:90px;height:90px;"></a>
|
||||||
<ul class="uk-navbar-nav">
|
<ul class="uk-navbar-nav">
|
||||||
<li><a href="<%= base_url %>">Home</a></li>
|
<li><a href="<%= base_url %>">Home</a></li>
|
||||||
<li><a href="<%= base_url %>library">Library</a></li>
|
<li><a href="<%= base_url %>library">Library</a></li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user