tangled
alpha
login
or
join now
emarref.net
/
ticks
0
fork
atom
A daily game
0
fork
atom
overview
issues
pulls
pipelines
Select preference on focus
Malcolm Fell
5 months ago
492ba2d0
f9425164
+30
-6
1 changed file
expand all
collapse all
unified
split
src
components
game
preferences-form.tsx
+30
-6
src/components/game/preferences-form.tsx
···
47
47
<FormItem className="col-span-2">
48
48
<FormLabel>Columns</FormLabel>
49
49
<FormControl>
50
50
-
<Input type="number" {...field} />
50
50
+
<Input
51
51
+
type="number"
52
52
+
onFocus={(e) => e.target.select()}
53
53
+
{...field}
54
54
+
/>
51
55
</FormControl>
52
56
<FormMessage />
53
57
</FormItem>
···
60
64
<FormItem className="col-span-2">
61
65
<FormLabel>Rows</FormLabel>
62
66
<FormControl>
63
63
-
<Input type="number" {...field} />
67
67
+
<Input
68
68
+
type="number"
69
69
+
onFocus={(e) => e.target.select()}
70
70
+
{...field}
71
71
+
/>
64
72
</FormControl>
65
73
<FormMessage />
66
74
</FormItem>
···
73
81
<FormItem>
74
82
<FormLabel>Left</FormLabel>
75
83
<FormControl>
76
76
-
<Input {...field} className="text-center text-2xl" />
84
84
+
<Input
85
85
+
{...field}
86
86
+
onFocus={(e) => e.target.select()}
87
87
+
className="text-center text-2xl"
88
88
+
/>
77
89
</FormControl>
78
90
<FormMessage />
79
91
</FormItem>
···
86
98
<FormItem>
87
99
<FormLabel>Top</FormLabel>
88
100
<FormControl>
89
89
-
<Input {...field} className="text-center text-2xl" />
101
101
+
<Input
102
102
+
{...field}
103
103
+
onFocus={(e) => e.target.select()}
104
104
+
className="text-center text-2xl"
105
105
+
/>
90
106
</FormControl>
91
107
<FormMessage />
92
108
</FormItem>
···
99
115
<FormItem>
100
116
<FormLabel>Right</FormLabel>
101
117
<FormControl>
102
102
-
<Input {...field} className="text-center text-2xl" />
118
118
+
<Input
119
119
+
{...field}
120
120
+
onFocus={(e) => e.target.select()}
121
121
+
className="text-center text-2xl"
122
122
+
/>
103
123
</FormControl>
104
124
<FormMessage />
105
125
</FormItem>
···
112
132
<FormItem>
113
133
<FormLabel>Bottom</FormLabel>
114
134
<FormControl>
115
115
-
<Input {...field} className="text-center text-2xl" />
135
135
+
<Input
136
136
+
{...field}
137
137
+
onFocus={(e) => e.target.select()}
138
138
+
className="text-center text-2xl"
139
139
+
/>
116
140
</FormControl>
117
141
<FormMessage />
118
142
</FormItem>