fixes: Incorrect formatting of repo card description #3956 #3962
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.
Description of the Bug
The repository card's description width appears to be inappropriate under certain conditions, leading to an imbalance with the overall padding and layout of the card. This issue makes the card visually inconsistent, potentially affecting the user experience.
Expected Behavior
The description text should maintain a more appropriate width, ensuring a larger space between the text and the card's border. This adjustment will create a more balanced and aesthetically pleasing layout for the repository card.
Proposed Solution
This issue has been addressed by updating the code that generates the repository card. Specifically, the anchor tag now properly wraps the entire card content, including the badge and description. The relevant code changes are as follows:
The modification ensures that the description does not extend too far, thus preventing overlap with the card's border.
Proper padding adjustments can be made in the CSS if needed, to ensure that the description aligns well within the card's layout.
By implementing this change, the repository card's description width will be more appropriate, enhancing the overall presentation and usability of the card in the user interface.