mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-04 20:05:29 -04:00
Added adjustable page gaps via config
This commit is contained in:
parent
dcdcf29114
commit
e086bec9da
@ -25,7 +25,8 @@ const readerComponent = () => {
|
||||
id: i + 1,
|
||||
url: `${base_url}api/page/${tid}/${eid}/${i+1}`,
|
||||
width: d.width,
|
||||
height: d.height
|
||||
height: d.height,
|
||||
style: `margin-top: ${d.margin}px; margin-bottom: ${d.margin}px;`
|
||||
};
|
||||
});
|
||||
|
||||
|
@ -20,6 +20,7 @@ class Config
|
||||
property plugin_path : String = File.expand_path "~/mango/plugins",
|
||||
home: true
|
||||
property download_timeout_seconds : Int32 = 30
|
||||
property page_margin : Int32 = 30
|
||||
property disable_login = false
|
||||
property default_username = ""
|
||||
property mangadex = Hash(String, String | Int32).new
|
||||
|
@ -117,6 +117,7 @@ class Entry
|
||||
sizes << {
|
||||
"width" => size.width,
|
||||
"height" => size.height,
|
||||
"margin" => Config.current.page_margin,
|
||||
}
|
||||
rescue e
|
||||
Logger.warn "Failed to read page #{i} of entry #{zip_path}. #{e}"
|
||||
|
@ -25,6 +25,7 @@
|
||||
<img
|
||||
uk-img
|
||||
class="uk-align-center"
|
||||
:style="item.style"
|
||||
:data-src="item.url"
|
||||
:width="item.width"
|
||||
:height="item.height"
|
||||
|
Loading…
x
Reference in New Issue
Block a user