🐛 Keep cookie consent banner full width on mobile 🐛

cookieconsent 3.0.3 forces the floating layout on mobile user agents, which is capped at 24em wide above 414px. Make both the banner and floating layouts full width at the bottom so the banner is consistent at every viewport.

- rootfs/usr/share/httpd/default/css/cookieconsent.css: add full-width consent banner rules
- rootfs/usr/share/httpd/default/index.php: add inline full-width override for the consent banner

- README.md: N/A — no user-facing change
This commit is contained in:
casjay committed 2026-11-22 12:52:23 -05:00
1 parent 55b26e6064
commit 9e297622b9
2 files changed
+54

No files matched your search

+27
View File
@@ -76,6 +76,33 @@
<div class="footer-custom" align="center">
<div class="text-center align-items-center fs-3">
<link rel="stylesheet" type="text/css" href="/css/cookieconsent.css" />
<style>
.cc-window.cc-banner,
.cc-window.cc-floating {
width: 100%;
max-width: 100%;
left: 0;
right: 0;
box-sizing: border-box;
}
@media screen and (min-width: 415px) {
.cc-window.cc-floating {
bottom: 0;
flex-direction: row;
align-items: center;
}
.cc-window.cc-floating:not(.cc-theme-edgeless) {
padding: 1em 1.8em;
}
.cc-window.cc-floating .cc-message {
flex: 1;
margin-bottom: 0;
}
.cc-window.cc-floating .cc-compliance {
flex: 0 0 auto;
}
}
</style>
<script src="/js/cookieconsent.js"></script>
<script>
window.addEventListener("load", function() {