mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-05 12:25:32 -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,
|
id: i + 1,
|
||||||
url: `${base_url}api/page/${tid}/${eid}/${i+1}`,
|
url: `${base_url}api/page/${tid}/${eid}/${i+1}`,
|
||||||
width: d.width,
|
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",
|
property plugin_path : String = File.expand_path "~/mango/plugins",
|
||||||
home: true
|
home: true
|
||||||
property download_timeout_seconds : Int32 = 30
|
property download_timeout_seconds : Int32 = 30
|
||||||
|
property page_margin : Int32 = 30
|
||||||
property disable_login = false
|
property disable_login = false
|
||||||
property default_username = ""
|
property default_username = ""
|
||||||
property mangadex = Hash(String, String | Int32).new
|
property mangadex = Hash(String, String | Int32).new
|
||||||
|
@ -117,6 +117,7 @@ class Entry
|
|||||||
sizes << {
|
sizes << {
|
||||||
"width" => size.width,
|
"width" => size.width,
|
||||||
"height" => size.height,
|
"height" => size.height,
|
||||||
|
"margin" => Config.current.page_margin,
|
||||||
}
|
}
|
||||||
rescue e
|
rescue e
|
||||||
Logger.warn "Failed to read page #{i} of entry #{zip_path}. #{e}"
|
Logger.warn "Failed to read page #{i} of entry #{zip_path}. #{e}"
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
<img
|
<img
|
||||||
uk-img
|
uk-img
|
||||||
class="uk-align-center"
|
class="uk-align-center"
|
||||||
|
:style="item.style"
|
||||||
:data-src="item.url"
|
:data-src="item.url"
|
||||||
:width="item.width"
|
:width="item.width"
|
||||||
:height="item.height"
|
:height="item.height"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user