Skip to content

fix: Hide comments from table preview display#1393

Merged
MilagrosMarin merged 1 commit intomasterfrom
fix/hide-comments-in-preview
Feb 6, 2026
Merged

fix: Hide comments from table preview display#1393
MilagrosMarin merged 1 commit intomasterfrom
fix/hide-comments-in-preview

Conversation

@dimitri-yatsenko
Copy link
Member

Summary

  • Remove table comment from appearing as bold title above table preview
  • Use HTML title attribute for column comments (hover-only tooltip, not visible in static view)
  • Remove unused custom tooltip CSS

Changes

Before:

  • Table comment displayed as <b>comment</b> title above the table
  • Column comments in <span class="djtooltiptext"> elements requiring CSS to hide

After:

  • Table comment not displayed (available via describe() method)
  • Column comments in native HTML title attribute - only visible on hover, never in static exports

Rationale

Comments in table definitions are for documentation purposes and shouldn't clutter the data preview. Users who want to see comments can use Table.describe() which shows the full table definition including all comments.

Using native HTML title attribute for column tooltips is:

  • Simpler (no custom CSS needed)
  • More accessible
  • Guaranteed hidden in static exports (PDF, print, etc.)

Fixes #1391

🤖 Generated with Claude Code

- Remove table comment from appearing as bold title above table
- Use HTML title attribute for column comments (hover-only, not visible in static view)
- Remove unused tooltip CSS

Table and column comments are still accessible via describe() method.

Fixes #1391

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@MilagrosMarin MilagrosMarin merged commit 3e75a16 into master Feb 6, 2026
7 checks passed
@MilagrosMarin MilagrosMarin deleted the fix/hide-comments-in-preview branch February 6, 2026 16:14
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.

Table comments appear in table previews

2 participants