diff --git a/src/file-viewer/backend.tsx b/src/file-viewer/backend.tsx index 5a39a7ebe9f32845e099eb8799f648fdd707b840..cb84e7d1109156182990b797a24385fcb4d7ace6 100644 --- a/src/file-viewer/backend.tsx +++ b/src/file-viewer/backend.tsx @@ -11,7 +11,7 @@ app.post("/file/cotyledon", async (c) => { app.get("/file/*", async (c, next) => { const ua = c.req.header("User-Agent")?.toLowerCase() ?? ""; - const lofi = ua.includes("msie") || false; + const lofi = ua.includes("msie") || ua.startsWith('w3m/') || false; let rawFilePath = c.req.path.slice(5) || "/"; @@ -19,6 +19,7 @@ app.get("/file/*", async (c, next) => { if ( !rawFilePath.endsWith("thumbnail.jpeg") && ( (!ua.startsWith("mozilla/") && + !ua.startsWith("w3m/") && // these two are for AirPlay !ua.includes("airplay") && !ua.includes("applecoremedia")) || diff --git a/src/file-viewer/views/lofi.css b/src/file-viewer/views/lofi.css index d82b27d10ad30cdd3485ffbc1853b4ed2ccde93c..3837ee0df30b8a1098623321516d35a44bfc94ff 100644 --- a/src/file-viewer/views/lofi.css +++ b/src/file-viewer/views/lofi.css @@ -38,6 +38,5 @@ li a:hover { opacity: 0.5; } .meta { - margin-left: 1em; opacity: 0.75; } diff --git a/src/file-viewer/views/lofi.marko b/src/file-viewer/views/lofi.marko index 98eb4afa3390f3a051c3194b83e16efe4a7e6dc2..7e33443fc8f19acfae6c013028eecdcf35af2755 100644 --- a/src/file-viewer/views/lofi.marko +++ b/src/file-viewer/views/lofi.marko @@ -22,9 +22,8 @@ export { meta, theme } from "./clofi.tsx"; )/>
  • - ${formatDate(file.date)}${" "} - ${file.basenameWithoutExt}${file.extension}${dir ? '/' : ''} - (${meta}) + ${formatDate(file.date)}${" "}${file.basenameWithoutExt}${file.extension}/ +    (${meta})
  • @@ -43,19 +42,19 @@ export { meta, theme } from "./clofi.tsx"; - -





    -

    - would you like to - dive deeper? -

    - + // + //





    + //

    + // would you like to + // dive deeper? + //

    + //