fix(org): align follow button and wrap description (#38448)#38454
Open
GiteaBot wants to merge 1 commit into
Open
fix(org): align follow button and wrap description (#38448)#38454GiteaBot wants to merge 1 commit into
GiteaBot wants to merge 1 commit into
Conversation
### Description Fixes the organization page header layout issue where: 1. Long organization descriptions did not wrap and instead stretched the header container out of bounds. 2. The "Follow" button floated dynamically adjacent to the description's right edge depending on the description length, instead of remaining at a fixed position aligned with the right edge of the page container. Fixes go-gitea#38445 ### Cause The flex container `<div class="flex-relaxed-list">` lacked `tw-flex-1` (to grow to fill the container) and `tw-min-w-0` (to allow it to shrink below its content's size). Consequently, the flex minimum width defaulted to `min-content`, stretching the container for long unwrapped descriptions. ### Solution Added `tw-flex-1 tw-min-w-0` to the `<div class="flex-relaxed-list">` container in `templates/org/header.tmpl`. This restricts the width, enables proper text wrapping, and fixes the "Follow" button to the right edge of the content container. ### Screenshots Before <img width="1300" height="615" alt="image" src="https://github.com/user-attachments/assets/11e6ab99-b847-45ff-8bdb-8622bfeee8aa" /> After <img width="1300" height="615" alt="image" src="https://github.com/user-attachments/assets/84ac0633-b192-4be5-8226-13bfad3ab2ec" /> --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
lunny
approved these changes
Jul 14, 2026
bircni
approved these changes
Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport #38448 by @SudhanshuMatrix
Description
Fixes the organization page header layout issue where:
Fixes #38445
Cause
The flex container
<div class="flex-relaxed-list">lackedtw-flex-1(to grow to fill the container) andtw-min-w-0(to allow it to shrink below its content's size). Consequently, the flex minimum width defaulted tomin-content, stretching the container for long unwrapped descriptions.Solution
Added
tw-flex-1 tw-min-w-0to the<div class="flex-relaxed-list">container intemplates/org/header.tmpl. This restricts the width, enables proper text wrapping, and fixes the "Follow" button to the right edge of the content container.Screenshots
Before


After