Fixar skalningen
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Joakim Svensson 2025-04-19 10:08:43 +00:00
parent affd49b64d
commit 9b1704d286
1 changed files with 13 additions and 7 deletions

View File

@ -1,16 +1,22 @@
.ascii-wrapper { .ascii-wrapper {
width: 100%;
display: flex; display: flex;
justify-content: center; justify-content: center; /* Centrerar horisontellt */
overflow-x: auto; align-items: center; /* Centrerar vertikalt om höjd är definierad */
-webkit-overflow-scrolling: touch; width: 100%;
height: 100%; /* Om du vill att det ska vara centrerat även vertikalt */
padding: 1rem 0; padding: 1rem 0;
overflow-x: auto;
background-color: #000; /* Svart bakgrund */
color: #0f0; /* Grön textfärg för bättre läsbarhet */
} }
.ascii-wrapper pre { .ascii-wrapper pre {
width: 100%; display: block;
text-align: center; /* Centrerar texten horisontellt */
margin: 0;
font-size: clamp(0.4rem, 1.2vw + 0.2rem, 0.75rem); font-size: clamp(0.4rem, 1.2vw + 0.2rem, 0.75rem);
line-height: 1.2; line-height: 1.2;
margin: 0; white-space: pre-wrap; /* Gör att texten kan radbryta om det behövs */
white-space: pre; word-break: break-word;
box-sizing: border-box;
} }