Closed
Description
Checklist
- I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
- This issue only relates to a single bug. I will open new issues for any other problems.
Describe the bug
The CSS for the centered-container class in the HTML file contains two justify-content properties. The second justify-content property will override the first one, making the first one redundant and potentially causing confusion.
How to reproduce
- Go to the repository containing the HTML file. (fyne\cmd\fyne\internal\templates\data\index.html)
- Locate the centered-container class in the CSS.
- Observe that there are two justify-content properties in the class definition.
- Notice that the second justify-content property overrides the first one.
Screenshots
No response
Example code
.centered-container {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
justify-content: center; /* This line overrides the previous justify-content */
min-height: 100vh;
}
Fyne version
2.5
Go compiler version
1.22.5
Operating system and version
Windows 11
Additional Information
No response
Activity