Skip to content

nmc/5798-files-sharing-expiration-date-field-size-is-too-big#485

Open
suet-kei-chan wants to merge 1 commit into
stable32from
nmc/5798-files-sharing-expiration-date-field-size-is-too-big
Open

nmc/5798-files-sharing-expiration-date-field-size-is-too-big#485
suet-kei-chan wants to merge 1 commit into
stable32from
nmc/5798-files-sharing-expiration-date-field-size-is-too-big

Conversation

@suet-kei-chan

Copy link
Copy Markdown

The expiration date input (#share-date-picker) in the sharing modal was rendering at 628x59 in Safari while other inputs (label, password) rendered at the correct 582x57 size.

Root cause: Safari enforces a native intrinsic minimum width and height on type="date" inputs when -webkit-appearance is not explicitly reset. This caused the date picker to overflow its container width by ~46px and exceed the intended height by ~3px regardless of the CSS width/height rules in ncfields.scss.

Fix:

  • Add -webkit-appearance: none and appearance: none to remove Safari's native date picker chrome, allowing the existing width: calc(100% - 10px) from ncfields.scss to apply correctly
  • Add box-sizing: border-box to ensure padding is absorbed within the declared dimensions
  • Add height: 56px !important scoped directly on #share-date-picker to explicitly override Safari's native input height

Affects: .sharingTabDetailsView and .sharingPopupDetailsView

The expiration date input (#share-date-picker) in the sharing modal
was rendering at 628x59 in Safari while other inputs (label, password)
rendered at the correct 582x57 size.

Root cause: Safari enforces a native intrinsic minimum width and height
on type="date" inputs when -webkit-appearance is not explicitly reset.
This caused the date picker to overflow its container width by ~46px
and exceed the intended height by ~3px regardless of the CSS
width/height rules in ncfields.scss.

Fix:
- Add -webkit-appearance: none and appearance: none to remove Safari's
  native date picker chrome, allowing the existing width: calc(100% - 10px)
  from ncfields.scss to apply correctly
- Add box-sizing: border-box to ensure padding is absorbed within the
  declared dimensions
- Add height: 56px !important scoped directly on #share-date-picker to
  explicitly override Safari's native input height

Affects: .sharingTabDetailsView and .sharingPopupDetailsView
@suet-kei-chan suet-kei-chan self-assigned this Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant