Skip to content

Commit

Permalink
Add back button to tags page
Browse files Browse the repository at this point in the history
  • Loading branch information
Mink-Mink committed Sep 29, 2023
1 parent 8d2bb05 commit 3faddc0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/icons/undo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions app/root.css
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,10 @@ a[target='_blank']:not(.icon-link, .transparent-link):after {
display: flex;
flex-wrap: wrap;
}
.tag-controls a {
margin: var(--marginTags);
}

.tag-controls .searchbar {
flex: 1;
margin: var(--marginTags);
Expand Down
5 changes: 5 additions & 0 deletions app/routes/tags/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {loadTags, Tag as TagType, QuestionState} from '~/server-utils/stampy'
import {Header, Footer} from '~/components/layouts'
import {MagnifyingGlass} from '~/components/icons-generated'
import {TagQuestions} from './$tag'
import undoSvg from '../../assets/icons/undo.svg'

export const loader = async ({request}: Parameters<LoaderFunction>[0]) => {
try {
Expand Down Expand Up @@ -50,6 +51,10 @@ export default function App() {
<Header />
<main>
<div className="tag-controls">
<a href="/" className="icon-link">
<img className="logo" alt="undo" src={undoSvg} />
Back
</a>
<label className="searchbar">
<input
type="search"
Expand Down

0 comments on commit 3faddc0

Please sign in to comment.