Rules Hub
Code Ruleset
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
Fix the root cause rather than masking a symptom
Hiding overflowing items with nth-child display:none, or papering over a layout bug, masks the real problem; restructure the underlying layout/logic instead.
Bad example
| 1 | &:nth-child(12), &:nth-child(13) { display: none; } // hide the overflow |
Explanation (EN)
Hiding arbitrary overflowing items leaves the underlying sizing/data mismatch intact.
Objašnjenje (HR)
Good example
| 1 | // fix the grid sizing / data limit so only the intended items render |
Explanation (EN)
Objašnjenje (HR)
Notes (EN)
When a layout patch hides unexpected content, establish whether the cause is sizing, data limits or an intentional presentation rule and fix the responsible contract.
Exceptions / Tradeoffs (EN)
A deliberate responsive content limit or temporary contained mitigation can be valid; do not redesign unrelated logic merely because a visibility rule exists.