Skip to content

Column menu: long column names push the pin/hide action buttons out of view #10813

Description

@AlbertoFabbri93

Describe the bug

In the DataFrame Columns menu, when a column name is long the name is not truncated, which pushes the action icons off to the right until they are clipped by the dropdown's fixed width (and/or its scrollbar).

Expected behavior: the column name should truncate (with the full name available via title/tooltip) so the action icons stay in a fixed position and remain visible/clickable regardless of name length.

Image

Code to reproduce

# /// script
# requires-python = ">=3.11"
# dependencies = [
#     "marimo",
#     "pandas",
# ]
# ///

import marimo as mo
import pandas as pd

df = pd.DataFrame({
    "Include_ACT_OS_Analysis": [1, 2, 3],
    "Include_ACT_RFI_Analysis": [1, 2, 3],
    "Include_NoTreat_OS_Analysis": [1, 2, 3],
    "Include_NoTreat_RFI_Analysis": [1, 2, 3],
    "External_ID_matching_normal_sample": [1, 2, 3],
})
mo.ui.table(df)

Open the table's Columns menu and note that the pin/focus and eye (hide) icons on the longer-named rows are pushed to the edge and clipped instead of staying aligned in a fixed-width action column.

Environment
{
  "marimo": "0.24.2",
  "editable": false,
  "location": "/Users/albi/Documents/University/johan_cosmx_python/.venv/lib/python3.14/site-packages/marimo",
  "OS": "Darwin",
  "OS Version": "25.6.0",
  "Processor": "arm",
  "Python Version": "3.14.6",
  "Locale": "en_US",
  "Binaries": {
    "Browser": "152.0.7977.84",
    "Node": "v26.4.0",
    "uv": "0.12.9 (Homebrew 2026-09-01 aarch64-apple-darwin)"
  },
  "Dependencies": {
    "click": "8.5.0",
    "docutils": "0.23",
    "itsdangerous": "2.2.0",
    "jedi": "0.19.2",
    "markdown": "3.10.3",
    "narwhals": "2.25.0",
    "packaging": "26.3",
    "psutil": "7.2.2",
    "pygments": "2.21.0",
    "pymdown-extensions": "11.0.2",
    "pyyaml": "6.0.3",
    "starlette": "1.6.0",
    "tomlkit": "0.15.1",
    "typing-extensions": "4.16.0",
    "uvicorn": "0.52.4",
    "websockets": "16.1.1"
  },
  "Optional Dependencies": {
    "altair": "6.2.2",
    "anywidget": "0.11.0",
    "loro": "1.13.2",
    "mcp": "1.29.1",
    "openai": "3.5.0",
    "pandas": "3.0.5",
    "pyarrow": "25.0.1",
    "python-lsp-ruff": "2.3.3",
    "python-lsp-server": "1.15.0",
    "ruff": "0.16.5",
    "vegafusion": "2.0.3"
  },
  "Experimental Flags": {}
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions