Skip to content

Commit 448d5ab

Browse files
committed
refactor: reorder event types for clarity and adjust grid layout
1 parent 1279355 commit 448d5ab

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/components/EventOptions.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ export function EventOptions({
2929
label: "keypress",
3030
description: "Key press (deprecated)",
3131
},
32-
{ key: "input", label: "input", description: "Text input changes" },
33-
{
34-
key: "beforeinput",
35-
label: "beforeinput",
36-
description: "Before text input",
37-
},
3832
{
3933
key: "compositionstart",
4034
label: "compositionstart",
@@ -50,6 +44,12 @@ export function EventOptions({
5044
label: "compositionend",
5145
description: "IME composition end",
5246
},
47+
{ key: "input", label: "input", description: "Text input changes" },
48+
{
49+
key: "beforeinput",
50+
label: "beforeinput",
51+
description: "Before text input",
52+
},
5353
] as const;
5454

5555
const handleToggle = (eventType: keyof EventFilters) => {
@@ -97,7 +97,7 @@ export function EventOptions({
9797
</div>
9898

9999
{/* Event type toggles */}
100-
<div className="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-3">
100+
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-3">
101101
{eventTypes.map(({ key, label, description }) => (
102102
<label
103103
key={key}

0 commit comments

Comments
 (0)