Skip to content
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

storage: Don't navigate when clicking on the mobile kebab #21433

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

mvollmer
Copy link
Member

Let's use the same trick as with the table: Don't put the navigation handler on the whole card, but on all its children that should navigate, and exclude the menu button.

Fixes #19897

Let's use the same trick as with the table: Don't put the navigation
handler on the whole card, but on all its children that should
navigate, and exclude the menu button.

Fixes cockpit-project#19897
@mvollmer mvollmer requested a review from jelly December 13, 2024 11:38
className={"ct-small-table-card" +
(page.location ? " ct-clickable-card" : null) +
(is_new ? " ct-new-item" : "")}
data-test-row-name={page.name}
data-test-row-location={page.columns[1]}>
<CardBody>
<Split hasGutter>
{ icon && <SplitItem>{icon}</SplitItem> }
<SplitItem isFilled><strong><Truncate content={name} /></strong>{info}</SplitItem>
{ icon && <SplitItem onClick={onClick}>{icon}</SplitItem> }
Copy link
Contributor

Choose a reason for hiding this comment

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

This added line is not executed by any test.

Copy link
Member

@jelly jelly left a comment

Choose a reason for hiding this comment

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

Thanks!

@mvollmer mvollmer merged commit b63f837 into cockpit-project:main Dec 13, 2024
87 checks passed
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.

Cannot click on device action menu in mdraid mobile view
3 participants