Skip to content

A local-first personal finance app

fix: move add specific days onto the next row and dynamically increased the width of the numbered input (#5406)

ShayanAraghi5d238c238d89
diff --git a/packages/desktop-client/src/components/select/RecurringSchedulePicker.tsx b/packages/desktop-client/src/components/select/RecurringSchedulePicker.tsx
index 592a246799..b2af66e275 100644
--- a/packages/desktop-client/src/components/select/RecurringSchedulePicker.tsx
+++ b/packages/desktop-client/src/components/select/RecurringSchedulePicker.tsx
@@ -489,7 +489,11 @@ function RecurringScheduleTooltip({
</Text>
<Input
id="interval"
- style={{ width: 40 }}
+ style={{
+ minWidth: '7ch',
+ width: `${String(config.interval || 1).length + 4}ch`,
+ maxWidth: '12ch',
+ }}
type="number"
min={1}
onChangeValue={value => updateField('interval', value)}
@@ -626,7 +630,7 @@ export function RecurringSchedulePicker({
<Popover
triggerRef={triggerRef}
- style={{ padding: 10, width: 380 }}
+ style={{ padding: 10, minWidth: 380, width: 'auto', maxWidth: '100%' }}
placement="bottom start"
isOpen={isOpen}
onOpenChange={() => setIsOpen(false)}
diff --git a/upcoming-release-notes/5406.md b/upcoming-release-notes/5406.md
new file mode 100644
index 0000000000..9427290c60
--- /dev/null
+++ b/upcoming-release-notes/5406.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [ShayanAraghi]
+---
+
+In the schedule date selection, move add specific days onto the next row and dynamically increased the width of the numbered input.