neuralworm commited on
Commit
2a8df6b
·
verified ·
1 Parent(s): 27fcc54

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
- #messages {
112
- flex: 1;
113
- overflow-y: auto;
114
- padding: 20px;
115
- display: flex;
116
- flex-direction: column;
117
- gap: 12px;
118
- scroll-behavior: smooth;
119
- background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
120
- }
 
 
121
 
122
- msg {
 
123
  padding: 10px 15px;
124
  border-radius: 6px;
125
  font-size: 0.95em;
126
  line-height: 1.5;
127
- max-width: 90%;
128
 
129
- /* --- FIX FÜR LAYOUT-SPRENGER --- */
130
- word-wrap: break-word; /* Basis-Umbruch */
131
- word-break: break-all; /* Zwingt "010101..." zum Umbruch */
132
- overflow-wrap: anywhere; /* Modernes CSS für Sicherheit */
133
- white-space: pre-wrap; /* Erhält Zeilenumbrüche, verhindert aber Overflow */
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;