Skip to content

Commit 68a365a

Browse files
committed
chore: Better ShortInput styling and updated intro template
1 parent b712d07 commit 68a365a

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

src/components/ui/ShortInput.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ export function ShortInput({ onChange }: { onChange: (value: string) => void })
22
return (
33
<span
44
contentEditable
5-
className="border border-zinc-300 dark:border-zinc-600 min-w-16 h-auto inline-block"
5+
className="border border-zinc-300 dark:border-zinc-600 h-auto px-2"
66
onInput={e => onChange((e.target as HTMLDivElement).innerText)}
7-
>
8-
&nbsp;
9-
</span>
7+
/>
108
);
119
}

src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
<script type="module" src="./Page.tsx" async></script>
1010
<style>
1111
:root {
12-
--background: hsl(0 0% 100%);
12+
--background: hsla(0 0% 100%);
1313
}
1414
.dark {
15-
--background: hsl(240 10% 3.9%);
15+
--background: hsla(240 10% 3.9%);
1616
}
1717
body {
1818
background-color: var(--background);

src/pages/Exercises.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ export function Exercises() {
1616
<ul>
1717
{exercises.map(exercise => (
1818
<li key={exercise}>
19-
<Button value={exercise} size="sm">
20-
<a href={`/exercise/${exercise}`}>{exercise}</a>
21-
</Button>
19+
<a href={`/exercise/${exercise}`}>
20+
<Button value={exercise} size="sm" className="cursor-pointer">
21+
{exercise}
22+
</Button>
23+
</a>
2224
</li>
2325
))}
2426
</ul>

templates/intro.template.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Equal, Expect } from '@type-challenges/utils';
22

3-
type SimpleRecord</* SHORT_INPUT */> =
4-
/* LONG_INPUT */;
3+
type SimpleRecord</* SHORT_INPUT */> = {
4+
/* LONG_INPUT */};
55

66
/* Test Cases */
77

0 commit comments

Comments
 (0)