Add version mcmeta diff page (#428)

* Add version mcmeta diff page

* Add toggle for word wrapping

* Fix diff view on mobile

* Use full layout width on version details

* Show image and audio diffs

* Add word_wrap locale
This commit is contained in:
Misode
2023-10-09 22:09:36 +02:00
committed by GitHub
parent ddf54174d1
commit ddd00dd731
19 changed files with 474 additions and 119 deletions

View File

@@ -32,7 +32,7 @@ export function useSearchParam(param: string): [string | undefined, (value: stri
} else {
params.set(param, newValue)
}
changeUrl({ search: params.toString().replaceAll('%7C', '|'), replace })
changeUrl({ search: params.toString().replaceAll('%7C', '|').replaceAll('%2F', '/'), replace })
}
}, [value])