[PR #4985] [MERGED] Fix user menu item styling #17578

Closed
opened 2025-11-02 14:11:37 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4985
Author: @silverwind
Created: 9/27/2018
Status: Merged
Merged: 9/27/2018
Merged by: @techknowlogick

Base: masterHead: user-menu


📝 Commits (1)

  • 2f9f84a Fix user menu item styling

📊 Changes

3 files changed (+7 additions, -2 deletions)

View changed files

📝 public/css/index.css (+1 -1)
📝 public/less/_base.less (+5 -0)
📝 templates/base/head_navbar.tmpl (+1 -1)

📄 Description

Small fix for the user menu. I'm not exactly sure but I think Semantic-UI is adding a display:flex !important inline style to the menu which destroys the item alignment. Workaround by explicitely setting a width and removing the useless border-radius on the items.

Before

screenshot 2018-09-27 at 22 15 22

After

screenshot 2018-09-27 at 22 15 08

🔄 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-gitea/gitea/pull/4985 **Author:** [@silverwind](https://github.com/silverwind) **Created:** 9/27/2018 **Status:** ✅ Merged **Merged:** 9/27/2018 **Merged by:** [@techknowlogick](https://github.com/techknowlogick) **Base:** `master` ← **Head:** `user-menu` --- ### 📝 Commits (1) - [`2f9f84a`](https://github.com/go-gitea/gitea/commit/2f9f84a94b61539f3c3187dc7569246f203e0aeb) Fix user menu item styling ### 📊 Changes **3 files changed** (+7 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `public/css/index.css` (+1 -1) 📝 `public/less/_base.less` (+5 -0) 📝 `templates/base/head_navbar.tmpl` (+1 -1) </details> ### 📄 Description Small fix for the user menu. I'm not exactly sure but I think Semantic-UI is adding a `display:flex !important` inline style to the menu which destroys the item alignment. Workaround by explicitely setting a width and removing the useless border-radius on the items. ### Before <img width="213" alt="screenshot 2018-09-27 at 22 15 22" src="https://user-images.githubusercontent.com/115237/46172134-e5c23280-c2a2-11e8-9469-1b2943a03ff2.png"> ### After <img width="223" alt="screenshot 2018-09-27 at 22 15 08" src="https://user-images.githubusercontent.com/115237/46172132-e5c23280-c2a2-11e8-82a2-3ff60c287ff6.png"> --- <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 2025-11-02 14:11:37 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17578