Skip to content

Commit 85375a8

Browse files
x0sinaImMohammad20000
authored andcommitted
fix(user-modal): adjust expiry date field styling for improved responsiveness
1 parent cab5bae commit 85375a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dashboard/src/components/dialogs/user-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ const ExpiryDateField = ({
194194
onFieldChange={handleFieldChange}
195195
/>
196196
{displayDate && expireInfo?.time && (
197-
<p className={cn('absolute top-full lg:w-48 lg:text-ellipsis lg:overflow-hidden text-end right-0 mt-1 whitespace-nowrap text-xs text-muted-foreground', dir === 'rtl' ? 'right-0' : 'left-0')}>
197+
<p className={cn(fieldName !== 'on_hold_timeout' && 'lg:w-48', 'absolute top-full lg:text-ellipsis lg:overflow-hidden text-end right-0 mt-1 whitespace-nowrap text-xs text-muted-foreground', dir === 'rtl' ? 'right-0' : 'left-0')}>
198198
{(() => {
199199
const now = new Date()
200200
const isExpired = displayDate < now

0 commit comments

Comments
 (0)