Hide changelog versions on medium screen

This commit is contained in:
Misode
2022-07-02 02:06:29 +02:00
parent 231b032029
commit b09ed80d20
2 changed files with 6 additions and 3 deletions

View File

@@ -5,11 +5,12 @@ import { Badge } from './index.js'
type Props = {
change: Change,
minimal?: boolean,
activeTags?: string[],
toggleTag?: (tag: string) => unknown,
}
export function ChangelogEntry({ change, activeTags, toggleTag }: Props) {
return <Card overlay={<>
export function ChangelogEntry({ change, minimal, activeTags, toggleTag }: Props) {
return <Card overlay={!minimal && <>
<a class="changelog-version" href={`/versions/?id=${change.version}`}>{change.version}</a>
<a class="changelog-version" href={`/versions/?id=${change.group}`}>{change.group}</a>
</>}>