diff --git a/src/routes/viewer.ts b/src/routes/viewer.ts index 05ee4216..d9582401 100644 --- a/src/routes/viewer.ts +++ b/src/routes/viewer.ts @@ -1,12 +1,12 @@ import { lstatSync, readFileSync } from 'fs'; -import { dirname as pdirname, join as pjoin } from 'path'; +import { join as pjoin } from 'path'; import { homedir } from 'os'; import { Request, Response, Router } from 'express'; import { messageClientsAt } from '../app.js'; import config from '../parser/config.js'; -import { absPath, pathToURL, pcomponents, pmime, preferredPath } from '../utils/path.js'; +import { absPath, pcomponents, pmime, preferredPath } from '../utils/path.js'; import { renderDirectory, renderTextFile } from '../parser/parser.js'; export const router = Router(); @@ -76,7 +76,6 @@ router.get(/.*/, async (req: Request, res: Response) => { ${config.styles ? `` : ''} -
${body}
diff --git a/static/style.css b/static/style.css index 1b05c4d1..32093baa 100644 --- a/static/style.css +++ b/static/style.css @@ -61,16 +61,6 @@ h3:hover a.header-anchor, h4:hover a.header-anchor, h5:hover a.header-anchor, h6:hover a.header-anchor { opacity: 1; } -a#parent-dir { - position: fixed; - height: 3rem; width: 3rem; - line-height: 3rem; text-align: center; - background-color: #333; - border-radius: 9999px; - left: 2rem; top: 2rem; - opacity: 0; -} -a#parent-dir:hover { opacity: 1; } /* -------------------------------------------------------------------------- * TABLES ------------------------------------------------------------------- */