Skip to content

Commit e827c5d

Browse files
fix(input): safari contraint (#1053)
close #923 <img width="1143" src="https://github.com/user-attachments/assets/3041927b-263c-4da1-909c-18c62730b6fb" /> <img width="1143" src="https://github.com/user-attachments/assets/8ac59fb6-4ce6-4f06-9061-8ba3e15d330a" /> --------- Co-authored-by: Leo Kettmeir <[email protected]>
1 parent f0f513b commit e827c5d

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

frontend/routes/@[scope]/(_islands)/ScopeInviteForm.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function ScopeInviteForm(props: ScopeInviteFormProps) {
5858
<select
5959
name="kind"
6060
id="kind-select"
61-
class="inline-block text-base px-2 py-1.5 input-container input rounded-r-none border-r-0"
61+
class="inline-block w-36 px-3 py-1.5 input-container select border-r-0 rounded-r-none"
6262
disabled={submitting}
6363
onChange={(e) => {
6464
if (kind.value !== e.currentTarget.value) {

frontend/routes/package/(_islands)/DownloadChart.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export function DownloadChart(props: Props) {
162162
),
163163
);
164164
}}
165-
className="input-container input px-1.5 py-0.5"
165+
className="input-container input select w-20"
166166
>
167167
<option value="daily">Daily</option>
168168
<option value="weekly" selected>Weekly</option>

frontend/static/styles.css

+12-3
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@
218218
.input-container {
219219
@apply bg-white dark:bg-jsr-gray-900 rounded-md leading-snug border-1
220220
border-jsr-cyan-900/30 dark:border-jsr-gray-600
221-
focus-within:border-jsr-cyan-500 dark:focus-within:border-cyan-400;
221+
focus-within:border-jsr-cyan-500 dark:focus-within:border-cyan-400
222+
appearance-none;
222223
}
223224

224225
select:not([data-locked="true"]):disabled.input-container,
@@ -255,10 +256,18 @@
255256
}
256257

257258
.select {
258-
@apply appearance-none outline-none opacity-100;
259+
@apply appearance-none outline-none opacity-100 pl-1;
259260
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 14 14"><path fill="currentColor" fill-rule="evenodd" d="M.47 3.97a.75.75 0 0 1 1.06 0L6 8.44l4.47-4.47a.75.75 0 0 1 1.06 1.06l-5 5a.75.75 0 0 1-1.06 0l-5-5a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd"/></svg>')
260261
no-repeat;
261-
background-position: center right 0.5rem;
262+
/* 0.25 = pl-1 */
263+
background-position: center right 0.25rem;
264+
}
265+
266+
.dark .select {
267+
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 14 14"><path fill="white" fill-rule="evenodd" d="M.47 3.97a.75.75 0 0 1 1.06 0L6 8.44l4.47-4.47a.75.75 0 0 1 1.06 1.06l-5 5a.75.75 0 0 1-1.06 0l-5-5a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd"/></svg>')
268+
no-repeat;
269+
/* 0.25 = pl-1 */
270+
background-position: center right 0.25rem;
262271
}
263272

264273
.score-circle {

0 commit comments

Comments
 (0)