Parcourir la source

feat: Subscription URL TextField use multiline (#761)

*Subscription link that are too long can make reading difficult, so use multiline TextField.
Majokeiko il y a 1 an
Parent
commit
15ee1e531b
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 6 1
      src/components/profile/profile-viewer.tsx

+ 6 - 1
src/components/profile/profile-viewer.tsx

@@ -188,7 +188,12 @@ export const ProfileViewer = forwardRef<ProfileViewerRef, Props>(
               name="url"
               control={control}
               render={({ field }) => (
-                <TextField {...text} {...field} label={t("Subscription URL")} />
+                <TextField
+                  {...text}
+                  {...field}
+                  multiline
+                  label={t("Subscription URL")}
+                />
               )}
             />