Skip to content

Commit

Permalink
feat(#81): remove old up/back button
Browse files Browse the repository at this point in the history
  • Loading branch information
Tweekism committed Jul 28, 2024
1 parent 420640b commit dd1e205
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
5 changes: 2 additions & 3 deletions src/routes/viewer.ts
Original file line number Diff line number Diff line change
@@ -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();
Expand Down Expand Up @@ -76,7 +76,6 @@ router.get(/.*/, async (req: Request, res: Response) => {
<link rel="stylesheet" type="text/css" href="/static/katex/katex.css">
${config.styles ? `<style type="text/css">${config.styles}</style>` : ''}
<body>
<a id="parent-dir" href="${pathToURL(pdirname(path))}">↩</a>
<div id="body-content">
${body}
</div>
Expand Down
10 changes: 0 additions & 10 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 ------------------------------------------------------------------- */
Expand Down

0 comments on commit dd1e205

Please sign in to comment.