Skip to content

fix(org): align follow button and wrap description (#38448)#38454

Open
GiteaBot wants to merge 1 commit into
go-gitea:release/v1.27from
GiteaBot:backport-38448-v1.27
Open

fix(org): align follow button and wrap description (#38448)#38454
GiteaBot wants to merge 1 commit into
go-gitea:release/v1.27from
GiteaBot:backport-38448-v1.27

Conversation

@GiteaBot

Copy link
Copy Markdown
Collaborator

Backport #38448 by @SudhanshuMatrix

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 #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
image
After
image

### 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>
@GiteaBot GiteaBot requested review from bircni and wxiaoguang July 14, 2026 17:55
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 14, 2026
@GiteaBot GiteaBot added this to the 1.27.1 milestone Jul 14, 2026
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jul 14, 2026
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants