diff --git a/src/app/app.ts b/src/app/app.ts index 8511d00b..df89aa36 100644 --- a/src/app/app.ts +++ b/src/app/app.ts @@ -364,12 +364,13 @@ Promise.all([ const addGen = (output: HTMLElement) => (m: any) => { output.insertAdjacentHTML('beforeend', - `
`) - output.lastChild?.addEventListener('click', evt => { + `) + output.lastChild?.addEventListener('click', evt => { reload(publicPath + m.id) + evt.preventDefault() }) } diff --git a/src/styles/global.css b/src/styles/global.css index 50e794bf..57f0a9d1 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -368,6 +368,7 @@ body { padding: 8px 15px; cursor: pointer; user-select: none; + text-decoration: none; border-radius: 3px; background-color: var(--nav-faded); color: var(--text);