[PR #1974] [MERGED] fix(menu): alignment of projects and subprojects in sidebar #5378

Closed
opened 2026-04-16 13:36:05 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/1974
Author: @vonalbert
Created: 12/12/2025
Status: Merged
Merged: 12/15/2025
Merged by: @kolaente

Base: mainHead: main


📝 Commits (3)

  • f0a9962 fix: align projects and subprojects menu items
  • a27cbdf fix: use the same units as collapse button and svg for collapse placeholder
  • d2d5432 refactor: normalized units to rem for project collapse toggle sizing

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 frontend/src/styles/theme/navigation.scss (+2 -1)

📄 Description

This PR changes the width of the collapse-project-button-placeholder element in order to match the width of the collapse button that has 0.25 + 0.5 rem of horizontal padding and the svg element inside has 1.25em of width.

As you can see from the screenshots, the first and third projects are misaligned compared to the second one. The same happens with sub-subprojects.

image image

Here there are the same projects with this fix applied. The alignment seems to be preserved even with deeply nested projects.

image image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/1974 **Author:** [@vonalbert](https://github.com/vonalbert) **Created:** 12/12/2025 **Status:** ✅ Merged **Merged:** 12/15/2025 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`f0a9962`](https://github.com/go-vikunja/vikunja/commit/f0a99627f4ab6c496b17aa8138b9a87db8f5937e) fix: align projects and subprojects menu items - [`a27cbdf`](https://github.com/go-vikunja/vikunja/commit/a27cbdf9650373877eae61a1232de5fcaffe32a3) fix: use the same units as collapse button and svg for collapse placeholder - [`d2d5432`](https://github.com/go-vikunja/vikunja/commit/d2d5432984ee3daaf983fa0cb5aeca7dfbc9683f) refactor: normalized units to rem for project collapse toggle sizing ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/styles/theme/navigation.scss` (+2 -1) </details> ### 📄 Description This PR changes the width of the collapse-project-button-placeholder element in order to match the width of the collapse button that has 0.25 + 0.5 rem of horizontal padding and the svg element inside has 1.25em of width. As you can see from the screenshots, the first and third projects are misaligned compared to the second one. The same happens with sub-subprojects. <img width="253" height="129" alt="image" src="https://github.com/user-attachments/assets/9ca55415-2303-45b5-8a9e-d1b0e03d44bb" /> <img width="258" height="258" alt="image" src="https://github.com/user-attachments/assets/ff6abfbe-5527-48d2-b8aa-2b34da054e19" /> Here there are the same projects with this fix applied. The alignment seems to be preserved even with deeply nested projects. <img width="247" height="143" alt="image" src="https://github.com/user-attachments/assets/6566e37a-2017-43d5-b94d-e3daf1a4eb7f" /> <img width="279" height="274" alt="image" src="https://github.com/user-attachments/assets/95d6afd9-ace8-4d55-95c2-c1f924d4826f" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 13:36:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#5378