Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

hide input number up down, remove max

Steven Teydfb55a1b9943
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-commission-sheet.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-commission-sheet.tsx
index ebc93220a3..c5913f26b8 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-commission-sheet.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-commission-sheet.tsx
@@ -329,7 +329,6 @@ function CreateCommissionSheetContent(props: CreateCommissionSheetProps) {
rules={{
required: true,
min: 0,
- max: 1000,
}}
render={({ field }) => (
<input
diff --git a/apps/web/styles/globals.css b/apps/web/styles/globals.css
index 8d08cebaa9..84b3c1e4d8 100644
--- a/apps/web/styles/globals.css
+++ b/apps/web/styles/globals.css
@@ -22,6 +22,15 @@ code .line::before {
color: rgba(115, 138, 148, 0.4);
}
+/* Hide the default number input spinners */
+input[type="number"]::-webkit-inner-spin-button,
+input[type="number"]::-webkit-outer-spin-button {
+ -webkit-appearance: none;
+ -moz-appearance: none;
+ appearance: none;
+ margin: 0;
+}
+
/* Implement a custom scrollbar to preventing ugly looking scroll-overflows */
.dub-scrollbar {
scrollbar-width: auto;