diff --git a/settings.example.json b/settings.example.json index d5fe8854..58857511 100644 --- a/settings.example.json +++ b/settings.example.json @@ -13,7 +13,7 @@ "debug.headless": false, "//": "Debug puppeteer process", "mocked": false, "//": "Use mocked data instead of live APIs (use 'force' to use mocked token even if real token are defined)", "repositories": 100, "//": "Number of repositories to use", - "padding": ["6%", "13%"], "//": "Image padding (default)", + "padding": ["20", "40 + 2%"], "//": "Image padding (default)", "hosted": { "by": "", "//": "Web instance host (displayed in footer)", "link": "", "//": "Web instance host link (displayed in footer)" diff --git a/source/app/action/index.mjs b/source/app/action/index.mjs index 90ee9f3a..b0e3bd7d 100644 --- a/source/app/action/index.mjs +++ b/source/app/action/index.mjs @@ -97,6 +97,7 @@ async function wait(seconds) { const q = {...query, ...(_repo ? {repo:_repo} : null), template} const _output = ["svg", "jpeg", "png", "json", "markdown", "markdown-pdf"].includes(config["config.output"]) ? config["config.output"] : metadata.templates[template].formats[0] ?? null const filename = _filename.replace(/[*]/g, {jpeg:"jpg", markdown:"md", "markdown-pdf":"pdf"}[_output] ?? _output) + config["config.padding"] = core.getInput("config_padding") || config["config.padding"] //Docker image if (_image)