Spaces:
Sleeping
Sleeping
Update experiments/templates/1014ecaa4_index.html
Browse files
experiments/templates/1014ecaa4_index.html
CHANGED
|
@@ -108,31 +108,33 @@
|
|
| 108 |
z-index: 5;
|
| 109 |
}
|
| 110 |
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
|
|
|
|
|
|
| 121 |
|
| 122 |
-
|
|
|
|
| 123 |
padding: 10px 15px;
|
| 124 |
border-radius: 6px;
|
| 125 |
font-size: 0.95em;
|
| 126 |
line-height: 1.5;
|
| 127 |
-
max-width: 90%;
|
| 128 |
|
| 129 |
-
/*
|
| 130 |
-
|
| 131 |
-
word-break: break-all;
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
}
|
| 136 |
|
| 137 |
.msg.user {
|
| 138 |
align-self: flex-end;
|
|
|
|
| 108 |
z-index: 5;
|
| 109 |
}
|
| 110 |
|
| 111 |
+
/* Container-Sicherung: Verhindert, dass der Chat breiter als der Bildschirm wird */
|
| 112 |
+
#messages {
|
| 113 |
+
flex: 1;
|
| 114 |
+
overflow-y: auto;
|
| 115 |
+
overflow-x: hidden !important; /* WICHTIG: Kappt alles, was zu breit ist */
|
| 116 |
+
padding: 20px;
|
| 117 |
+
display: flex;
|
| 118 |
+
flex-direction: column;
|
| 119 |
+
gap: 12px;
|
| 120 |
+
width: 100%; /* Zwingt den Container auf Bildschirmbreite */
|
| 121 |
+
box-sizing: border-box;
|
| 122 |
+
}
|
| 123 |
|
| 124 |
+
/* Nachrichten-Fix: Erzwingt den Umbruch um jeden Preis */
|
| 125 |
+
.msg {
|
| 126 |
padding: 10px 15px;
|
| 127 |
border-radius: 6px;
|
| 128 |
font-size: 0.95em;
|
| 129 |
line-height: 1.5;
|
| 130 |
+
max-width: 90%;
|
| 131 |
|
| 132 |
+
/* DER HAMMER: */
|
| 133 |
+
overflow-wrap: anywhere !important; /* Modernster Befehl für "überall brechen" */
|
| 134 |
+
word-break: break-all !important; /* Bricht auch mitten im Wort/Zahl */
|
| 135 |
+
white-space: pre-wrap !important; /* Erhält Formatierung, erlaubt aber Umbruch */
|
| 136 |
+
min-width: 0; /* Flexbox-Fix für Schrumpfen */
|
| 137 |
+
}
|
|
|
|
| 138 |
|
| 139 |
.msg.user {
|
| 140 |
align-self: flex-end;
|