Skip to content

Commit

Permalink
UPDATE: hyperlink to broken image (which we for github sometimes)
Browse files Browse the repository at this point in the history
  • Loading branch information
fileformat committed Aug 6, 2024
1 parent 33c9cbc commit f4463c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 0 additions & 6 deletions app/routes/view[.]html/KeyHandler.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@

import { borders } from './BorderButtons'


function nextBorder(current: string): string {
const currentIndex = borders.findIndex((border) => border.value === current);
const nextIndex = (currentIndex + 1) % borders.length;
Expand All @@ -10,10 +8,6 @@ function nextBorder(current: string): string {

function KeyHandler(searchParams: URLSearchParams, border: string, currentZoom: number, e: KeyboardEvent): URLSearchParams | null {



console.log(e);

switch (e.key.toLocaleLowerCase()) {
case '1':
searchParams.set('zoom', '1');
Expand Down
3 changes: 2 additions & 1 deletion app/routes/view[.]html/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
Text,
useBreakpointValue,
useColorModeValue,
Link,
} from "@chakra-ui/react";
import { useNavigate, useSearchParams } from "@remix-run/react";

Expand Down Expand Up @@ -181,7 +182,7 @@ export default function ViewPage() {
style={{ width: "5rem", height: "5rem" }}
/>
<Text>{t("Error loading image")}</Text>
<Text>{url}</Text>
<Link href={url}>{url}</Link>
</VStack>
) : (
<></>
Expand Down

0 comments on commit f4463c9

Please # to comment.