Skip to content

Backend module not scrollable due to CSS override (height: auto)

Module: Backend → Statistics & Consent

Summary

A rule in Resources/Public/StyleSheets/Backend/backend.css sets:

.tx_sgcookieoptin-module { height: auto; }

This overrides the TYPO3 Core rule (.module { height: 100%; overflow-y: auto; }), removing the inner scroll in the backend module. As a result, Statistics/Consent content isn’t scrollable when taller than the viewport.

Reproduction

  1. Open TYPO3 backend → SG Cookie Optin → Statistics (or Consent).
  2. Ensure content exceeds viewport height.
  3. Observe: no inner scroll; content is cut off.

Fix (minimal)

Change to height: 100% so Core overflow behavior applies again.

--- Resources/Public/StyleSheets/Backend/backend.css	2025-08-20
+++ Resources/Public/StyleSheets/Backend/backend.css	2025-08-20
@@ -1,3 +1,3 @@
-.tx_sgcookieoptin-module {
-	height: auto;
-}
+.tx_sgcookieoptin-module {
+	height: 100%;
+}

Environment

  • TYPO3: 12.x
  • PHP: 8.2
  • sgalinski/sg-cookie-optin: 7.0.11

Impact

Backend module content (charts/tables) becomes properly scrollable again.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information