Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions copi.owasp.org/assets/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@
@import "tailwindcss/components";
@import "tailwindcss/utilities";

/* Prevent horizontal page overflow on all viewports */
:root {
overflow-x: hidden;
max-width: 100%;
}

/*
Game table: player card slots are rendered in a single flex row.
When the total card width exceeds the viewport the table must scroll
internally rather than pushing the page layout wider.
*/
#table {
overflow-x: auto;
max-width: 100%;
}

#copied-url {
field-sizing: content;
display: inline-block;
Expand All @@ -12,6 +28,9 @@

#copy-url-container {
white-space: nowrap;
/* Prevent the URL bar overflowing the viewport */
max-width: 100%;
overflow-x: auto;
}

#copy-url-btn {
Expand Down
3 changes: 3 additions & 0 deletions copi.owasp.org/assets/css/cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1654,6 +1654,9 @@ $wildcard-mobile-color: rgb(251, 182, 124);
.card-player {

display: flex;
/* Prevent flex items from shrinking below their card width when the
parent #table container activates its overflow-x scroll context. */
flex-shrink: 0;

.name {
margin-right: clamp(6px, 0.6vw, 8px);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="min-h-full">
<div class="min-h-full overflow-x-hidden">
<div class="bg-gray-800">
<nav class="bg-gray-800">
<div class="mx-auto max-w-7xl sm:px-6 lg:px-8">
Expand Down
Loading