Skip to content

fix #11561: copy button inside context menu#13040

Closed
KikoMV wants to merge 7 commits intogradio-app:mainfrom
KikoMV:fix-issue-11561
Closed

fix #11561: copy button inside context menu#13040
KikoMV wants to merge 7 commits intogradio-app:mainfrom
KikoMV:fix-issue-11561

Conversation

@KikoMV
Copy link
Copy Markdown

@KikoMV KikoMV commented Mar 18, 2026

bug: when opening the context menu of a cell inside gr.DataFrame the clipboard icon of some component appears above the context menu. fix: created a dedicated container for the DataFrame and changed the stacking priority order.

Description

First i tried to individually increase the z-value of the menu, but since it was inside a parent element with a lower stacking context than the copy button, it didnt work. Next i created a dedicated container where i wrapped the DataFrame, then i've made it so that the DataFrame's menu, is in a higher priority order of stack.

Closes: #11561

AI Disclosure

We encourage the use of AI tooling in creating PRs, but the any non-trivial use of AI needs be disclosed. E.g. if you used Claude to write a first draft, you should mention that. Trivial tab-completion doesn't need to be disclosed. You should self-review all PRs, especially if they were generated with AI.

  • I used AI to... [fill here]
  • I did not use AI

🎯 PRs Should Target Issues

Before your create a PR, please check to see if there is an existing issue for this change. If not, please create an issue before you create this PR, unless the fix is very small.

Not adhering to this guideline will result in the PR being closed.

Testing and Formatting Your Code

  1. PRs will only be merged if tests pass on CI. We recommend at least running the backend tests locally, please set up your Gradio environment locally and run the backed tests: bash scripts/run_backend_tests.sh

  2. Please run these bash scripts to automatically format your code: bash scripts/format_backend.sh, and (if you made any changes to non-Python files) bash scripts/format_frontend.sh

KikoMV and others added 3 commits March 18, 2026 14:33
bug: when opening the context menu of a cell inside gr.DataFrame
the clipboard icon of some component appears above the context menu.
fix: created a dedicated container for the DataFrame and changed the
stacking priority order.
@hannahblair
Copy link
Copy Markdown
Collaborator

Hi @KikoMV! I'm not sure if this closes the issue - it seems the issue is appearing across multiple components per the issue description:

gr.JSON
gr.Markdown
gr. Image
I tested with gr.Textbox as well - like and gr.Number but the clipboard icon appears behind the context menu.

@KikoMV
Copy link
Copy Markdown
Author

KikoMV commented Mar 20, 2026

Hi @KikoMV! I'm not sure if this closes the issue - it seems the issue is appearing across multiple components per the issue description:

gr.JSON
gr.Markdown
gr. Image
I tested with gr.Textbox as well - like and gr.Number but the clipboard icon appears behind the context menu.

Hi! Thank you for the attention, i will look into it.

@KikoMV
Copy link
Copy Markdown
Author

KikoMV commented Mar 20, 2026

Hi again @hannahblair, I've ran some tests and it seems like it is working for the different components. My understanding of the bug is that the gr.DataFrame context menu of a cell was appearing behind the copy button of different components. I have tested opening the context menu on top of the different components and it looks fixed. Could you elaborate further on what you meant please? Once again, thank you for the attention.

@gradio-pr-bot
Copy link
Copy Markdown
Collaborator

gradio-pr-bot commented Mar 20, 2026

🪼 branch checks and previews

Name Status URL
🦄 Changes detected! Details

@gradio-pr-bot
Copy link
Copy Markdown
Collaborator

🦄 change detected

This Pull Request includes changes to the following packages.

Package Version
@gradio/dataframe-interim patch
gradio patch


‼️ Changeset not approved. Ensure the version bump is appropriate for all packages before approving.

  • Maintainers can approve the changeset by checking this checkbox.

Something isn't right?

  • Maintainers can change the version label to modify the version bump.
  • If the bot has failed to detect any changes, or if this pull request needs to update multiple packages to different versions or requires a more comprehensive changelog entry, maintainers can update the changelog file directly.

@freddyaboulton
Copy link
Copy Markdown
Collaborator

Hi @KikoMV ! We're in the process of reworking the dataframe entirely (getting rid of dataframe-interim for example) so this change would likely churn

@freddyaboulton
Copy link
Copy Markdown
Collaborator

Thanks for opening the PR though

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.

Clipboard icon of some components appears above gr.Dataframe cell's context menu

4 participants