-
Notifications
You must be signed in to change notification settings - Fork 0
3626: fix:improve footer responsiveness on smaller screens #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -33,3 +33,36 @@ | |||||||||||||||||||||||||||
| .navbar-brand { | ||||||||||||||||||||||||||||
| font-family: "PT Mono", monospace; | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| @media (max-width: 996px) { | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| footer .row { | ||||||||||||||||||||||||||||
| display: flex; | ||||||||||||||||||||||||||||
| flex-direction: column; | ||||||||||||||||||||||||||||
| align-items: center; | ||||||||||||||||||||||||||||
| text-align: center; | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| footer [class^="col-"] { | ||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. value:useful; category:bug; feedback:The Augment AI reviewer is correct! The CSS selector would match "col-*" only if it is the very first CSS class token and it won't match if is the second one or later. To make it future-proof the selector should be changed to |
||||||||||||||||||||||||||||
| width: 100% !important; | ||||||||||||||||||||||||||||
| max-width: 100% !important; | ||||||||||||||||||||||||||||
| text-align: center !important; | ||||||||||||||||||||||||||||
|
Comment on lines
+47
to
+49
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using
Suggested change
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. value:good-to-have; category:bug; feedback:The Gemini AI reviewer is correct! Usage of "!important" should be avoided if possible because otherwise it is impossible to overwrite the rules elsewhere. It is better to use more specific CSS rule selectors |
||||||||||||||||||||||||||||
| margin-bottom: 1.25rem; | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
|
Comment on lines
+46
to
+51
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make the column selector robust to non-leading
🔧 Suggested tweak- footer [class^="col-"] {
+ footer .row > [class^="col-"],
+ footer .row > [class*=" col-"] {
width: 100% !important;
max-width: 100% !important;
text-align: center !important;
margin-bottom: 1.25rem;
}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. value:useful; category:bug; feedback:The CodeRabbit AI reviewer is correct! The CSS selector would match "col-*" only if it is the very first CSS class token and it won't match if is the second one or later. To make it future-proof the selector should be changed to |
||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| footer ul.list-inline { | ||||||||||||||||||||||||||||
| display: flex; | ||||||||||||||||||||||||||||
| justify-content: center; | ||||||||||||||||||||||||||||
| flex-wrap: wrap; | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| footer ul.list-inline li { | ||||||||||||||||||||||||||||
| margin: 0.4rem; | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| footer img { | ||||||||||||||||||||||||||||
| margin-left: auto; | ||||||||||||||||||||||||||||
| margin-right: auto; | ||||||||||||||||||||||||||||
| display: block; | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
|
Comment on lines
+63
to
+67
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. value:useful; category:bug; feedback:The Gemini AI reviewer is correct! There is no need to center inline elements like |
||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. value:good-to-have; category:bug; feedback:The Augment AI reviewer is correct! The POSIX standard recommends all text files to end with an empty new line. Prevents potential problems with tools which expect a newline at the end of the text files. |
||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The breakpoint
996pxis very close to Bootstrap's standardlgbreakpoint of992px. To maintain consistency with the framework's grid system and improve predictability, it's better to use standard breakpoints unless there's a specific reason for this custom value. Consider changing996pxto992px.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
value:useful; category:bug; feedback:The Gemini AI reviewer is correct! The website is based on the Bootstrap CSS framework and it would be good to use the same breakpoint values as it, i.e. 992px. Prevents inconsistency and wrong behavior of the website rendering between 992-996px width.