diff --git a/xleb/fapi.py b/xleb/fapi.py index cd8b680..a6de2aa 100644 --- a/xleb/fapi.py +++ b/xleb/fapi.py @@ -163,7 +163,7 @@ async def handle_download(request: aiohttp.web.Request) -> aiohttp.web.Response: return aiohttp.web.FileResponse( fspath, headers={ - aiohttp.hdrs.CONTENT_DISPOSITION: f'''inline; filename*=UTF-8''"{ urllib.parse.quote(fname, safe='') }"''' + aiohttp.hdrs.CONTENT_DISPOSITION: f'''inline; filename*=UTF-8''"{ urllib.parse.quote(fname, safe='') }"; filename="{ urllib.parse.quote(fname.encode('utf-8').decode('ascii', 'ignore'), safe='') }"''' } ) diff --git a/xleb/static/css/common.css b/xleb/static/css/common.css index c54540f..b3dd4b5 100644 --- a/xleb/static/css/common.css +++ b/xleb/static/css/common.css @@ -167,7 +167,7 @@ body, html { gap: var(--gap); - overflow: scroll; + overflow: auto; } .file-nav {