Skip to content

Fix: truncate text overflow for tags#1711

Merged
IgorSusmelj merged 3 commits into
mainfrom
igor-lig-9934-handle-overflow-for-tags
Jul 22, 2026
Merged

Fix: truncate text overflow for tags#1711
IgorSusmelj merged 3 commits into
mainfrom
igor-lig-9934-handle-overflow-for-tags

Conversation

@IgorSusmelj

@IgorSusmelj IgorSusmelj commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

What has changed and why?

Before
image

or

image

After
image

If you hover long enough we also show the title (so users still see the full tag name):
image

How has it been tested?

  • Manual in the GUI as this is only as HTML class change

Did you update CHANGELOG.md?

  • Yes
  • Not needed (internal change)

Summary by CodeRabbit

  • Bug Fixes
    • Long tags in the left-side menu are now truncated instead of overflowing.
    • Checkbox labels now fit more reliably within their available space and display full text on hover.

@IgorSusmelj
IgorSusmelj requested a review from a team as a code owner July 22, 2026 06:47
@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Checkbox layout and label styles now constrain, truncate, and expose the full text of long left-side menu tags. The changelog records this fix.

Changes

Tag label overflow

Layer / File(s) Summary
Constrain and truncate checkbox labels
lightly_studio_view/src/lib/components/Form/Checkbox/Checkbox.svelte, CHANGELOG.md
Checkbox wrappers now constrain flex sizing, while labels truncate long text and bind the full label to title; the changelog documents the fix.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

Suggested reviewers: horatiualmasan

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: truncating long tag text overflow.
Description check ✅ Passed The description covers the change, testing, and changelog update in the required template sections.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch igor-lig-9934-handle-overflow-for-tags

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lightly-fast-track-bot

lightly-fast-track-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown

❌ Fast Track: checks did not pass

Failed guardrails: frontend/complexity (Guardrail threw: Cannot find module 'eslint'
Require stack:

  • /home/runner/work/lightly-studio/lightly-studio/lightly_studio_view/package.json), frontend/coverage ( [FAIL] lightly_studio_view/src/lib/components/Form/Checkbox/Checkbox.svelte: no test file found)
Guardrail Result Message
dummy Always passes.
frontend/complexity Guardrail threw: Cannot find module 'eslint' Require stack: - /home/runner/work/lightly-studio/lightly-studio/lightly_studio_view/package.json
backend/complexity 0 file(s) checked.
backend/coverage 0 file(s) checked.
diff-size PR adds 6 line(s) (limit: 215).
frontend/coverage [FAIL] lightly_studio_view/src/lib/components/Form/Checkbox/Checkbox.svelte: no test file found

Reflects 3a14adc.

@IgorSusmelj

Copy link
Copy Markdown
Contributor Author

/review

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
lightly_studio_view/src/lib/components/Form/Checkbox/Checkbox.svelte (1)

23-37: 📐 Maintainability & Code Quality | 🔵 Trivial

Run the frontend validation suite before merge.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@lightly_studio_view/src/lib/components/Form/Checkbox/Checkbox.svelte` around
lines 23 - 37, Run the frontend validation suite for the Checkbox component
changes, including the project’s formatting, linting, type-checking, and
relevant tests, and resolve any failures before merging.

Source: Path instructions

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@lightly_studio_view/src/lib/components/Form/Checkbox/Checkbox.svelte`:
- Around line 23-37: Run the frontend validation suite for the Checkbox
component changes, including the project’s formatting, linting, type-checking,
and relevant tests, and resolve any failures before merging.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: d182a813-a97e-4f5e-948a-34e52c510d28

📥 Commits

Reviewing files that changed from the base of the PR and between 75bcf91 and 8b22ca7.

📒 Files selected for processing (2)
  • CHANGELOG.md
  • lightly_studio_view/src/lib/components/Form/Checkbox/Checkbox.svelte

@IgorSusmelj
IgorSusmelj enabled auto-merge July 22, 2026 11:07
@IgorSusmelj
IgorSusmelj added this pull request to the merge queue Jul 22, 2026
Merged via the queue into main with commit 55572ef Jul 22, 2026
21 checks passed
@IgorSusmelj
IgorSusmelj deleted the igor-lig-9934-handle-overflow-for-tags branch July 22, 2026 11:26
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.

3 participants