Skip to content

Remove modal header for smart picker dialogs #7036

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: stable8
Choose a base branch
from

Conversation

marcoambrosini
Copy link
Contributor

@marcoambrosini marcoambrosini commented Jun 11, 2025

The modal header is unused in smartpicker dialogs and prevents using the closing button.
Required for nextcloud/assistant#257

@marcoambrosini marcoambrosini requested a review from julien-nc June 11, 2025 13:38
Hide the empty modal header which prevents from accessing the close button
Cannot use display:none because there's a `display: flex !important` in the
Ncmodal component which would override it. This works because the
`.modal-header` element has `position: absolute`.
TODO: Add prop to NcModal to hide the header

Signed-off-by: Marco Ambrosini <[email protected]>
@julien-nc
Copy link
Contributor

julien-nc commented Jun 12, 2025

I tried linking with Talk, it works fine 👍

@marcoambrosini marcoambrosini marked this pull request as ready for review June 12, 2025 08:56
@marcoambrosini marcoambrosini self-assigned this Jun 12, 2025
@marcoambrosini marcoambrosini added bug Something isn't working 3. to review Waiting for reviews labels Jun 12, 2025
// Cannot use display:none because there's a `display: flex !important` in the
// Ncmodal component which would override it. This works because the
// `.modal-header` element has `position: absolute`.
// TODO: Add prop to NcModal to hide the header
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is a dialog then it should use NcDialog and not NcModal which also would fix this issue.

@susnux
Copy link
Contributor

susnux commented Jun 18, 2025

The commit message needs to be adjusted to follow conventional commits.
Also its probably best to go through main branch first and backport - in this case here you have to forward port to main afterwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants