Skip to content

fix(link share): don't leak Bulma content margins into shared views - #3608

Merged
kolaente merged 1 commit into
mainfrom
agent/issue-3584
Aug 27, 2026
Merged

fix(link share): don't leak Bulma content margins into shared views#3608
kolaente merged 1 commit into
mainfrom
agent/issue-3584

Conversation

@tink-bot

Copy link
Copy Markdown
Collaborator

Shared project views render inside a Card that defaults to hasContent: true, so Bulma's .content typography wrapped the whole view. Logged-in views have no such wrapper, so shared views — Kanban most visibly, since its buckets and tasks are nested ul/li — picked up .content ul, .content ul ul and .content li + li margins that don't belong there.

Fixes #3584

How to verify

  1. Create a project with a Kanban view, add a bucket and at least two tasks to it.
  2. Share the project via a link share and open the share URL, then switch to the Kanban view.
  3. Expected: the board is flush against the card edge and the task cards sit directly on top of each other, identical to the Kanban view when logged in.
  4. Before this PR: the bucket list was indented by 2rem with 1rem of extra space above it, and every task card after the first had an extra 0.25em gap.

…roject view

ContentLinkShare wraps the router view in a `Card`, which defaults to
`hasContent: true` and therefore adds Bulma's `.content` class around the
whole project view. Logged-in views render without that wrapper, so the
shared views picked up typography margins the normal views never had.

The Kanban board is built from nested `ul`/`li` for buckets and tasks, so
`.content ul` (2rem inline start, 1em top), `.content ul ul` and
`.content li + li` all leaked in and shifted the board.

Pass `:has-content="false"`, matching what ProjectList, ProjectTable and
ProjectGantt already do on their own cards — those were ineffective for
link shares because the outer card re-introduced `.content` around them.

Fixes #3584
@github-actions github-actions Bot added area/kanban Kanban view, buckets, bucket CRUD, done-bucket behavior area/permissions Sharing, link sharing, roles, access control, assignee roles concern/ux UX polish, ergonomics, workflow complaints without a clear bug labels Aug 27, 2026
@github-actions

Copy link
Copy Markdown

Preview Deployment

Preview deployments for this PR are available at:

URL Tag Commit
https://pr-3608.preview.vikunja.dev ghcr.io/go-vikunja/vikunja:pr-3608 latest
https://sha-9744e13a5218be96ad26475134f8e703734d4fbd.preview.vikunja.dev ghcr.io/go-vikunja/vikunja:sha-9744e13a5218be96ad26475134f8e703734d4fbd 9744e13

The preview environment will start automatically on first visit. Subsequent pushes to this PR will update the pr-3608 image — the preview picks up the new version on restart. The per-commit URLs point to a specific version and will not change.

Run locally with Docker
docker pull ghcr.io/go-vikunja/vikunja:pr-3608
docker run -p 3456:3456 ghcr.io/go-vikunja/vikunja:pr-3608

Last updated for commit 9744e13

@kolaente
kolaente merged commit 32d5fed into main Aug 27, 2026
77 of 79 checks passed
@kolaente
kolaente deleted the agent/issue-3584 branch August 27, 2026 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/kanban Kanban view, buckets, bucket CRUD, done-bucket behavior area/permissions Sharing, link sharing, roles, access control, assignee roles concern/ux UX polish, ergonomics, workflow complaints without a clear bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect margins in a shared Kanban view

2 participants