Update templates/index.html
Browse files- templates/index.html +11 -11
templates/index.html
CHANGED
|
@@ -317,12 +317,9 @@
|
|
| 317 |
pre:hover .code-copy-btn {
|
| 318 |
opacity: 0.7;
|
| 319 |
}
|
| 320 |
-
/*
|
| 321 |
-
.prose {
|
| 322 |
-
overflow-wrap: break-word;
|
| 323 |
-
word-break: break-word;
|
| 324 |
-
}
|
| 325 |
.table-wrapper {
|
|
|
|
| 326 |
overflow-x: auto;
|
| 327 |
margin: 1rem 0;
|
| 328 |
border: 1px solid #e2e8f0;
|
|
@@ -333,7 +330,7 @@
|
|
| 333 |
}
|
| 334 |
.prose table {
|
| 335 |
width: 100%;
|
| 336 |
-
min-width:
|
| 337 |
border-collapse: collapse;
|
| 338 |
margin: 0;
|
| 339 |
}
|
|
@@ -381,7 +378,7 @@
|
|
| 381 |
padding-right: 3rem;
|
| 382 |
box-sizing: border-box;
|
| 383 |
}
|
| 384 |
-
/* Ajustements
|
| 385 |
@media (max-width: 640px) {
|
| 386 |
.message-bubble {
|
| 387 |
max-width: 90%;
|
|
@@ -420,7 +417,7 @@
|
|
| 420 |
font-size: 0.9rem;
|
| 421 |
}
|
| 422 |
}
|
| 423 |
-
/* Container pour le textarea et le bouton
|
| 424 |
.input-wrapper {
|
| 425 |
position: relative;
|
| 426 |
display: flex;
|
|
@@ -504,7 +501,6 @@
|
|
| 504 |
</div>
|
| 505 |
<!-- Barre d'options -->
|
| 506 |
<div class="flex items-center justify-between flex-wrap gap-y-2 px-4 py-2 bg-gray-100 dark:bg-gray-800/80 text-sm text-gray-600 dark:text-gray-300">
|
| 507 |
-
<!-- Ajout du flex-wrap -->
|
| 508 |
<div class="flex items-center space-x-4 flex-wrap gap-y-2">
|
| 509 |
<label class="flex items-center cursor-pointer tooltip">
|
| 510 |
<span class="mr-2 text-xs sm:text-sm font-medium"><i class="fa-solid fa-globe mr-1.5"></i><span class="hidden sm:inline">Recherche Web</span></span>
|
|
@@ -527,7 +523,6 @@
|
|
| 527 |
<span class="tooltip-text">Raisonnement avanc茅 (1 fois/min)</span>
|
| 528 |
</label>
|
| 529 |
</div>
|
| 530 |
-
<!-- Conteneur pour le fichier -->
|
| 531 |
<div class="flex items-center space-x-2">
|
| 532 |
<label for="file_upload" class="cursor-pointer flex items-center text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300 tooltip">
|
| 533 |
<i class="fa-solid fa-paperclip"></i>
|
|
@@ -1022,7 +1017,12 @@
|
|
| 1022 |
clearButton.disabled = true;
|
| 1023 |
clearButton.innerHTML = '<i class="fa-solid fa-spinner fa-spin mr-1.5"></i><span class="hidden sm:inline">Effacement...</span>';
|
| 1024 |
try {
|
| 1025 |
-
const response = await fetch(CLEAR_ENDPOINT, {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1026 |
const data = await response.json();
|
| 1027 |
if (response.ok && data.success) {
|
| 1028 |
const messagesToRemove = chatMessages.querySelectorAll(':scope > *:not(#loading-indicator)');
|
|
|
|
| 317 |
pre:hover .code-copy-btn {
|
| 318 |
opacity: 0.7;
|
| 319 |
}
|
| 320 |
+
/* Am茅lioration de l'affichage des tableaux Markdown */
|
|
|
|
|
|
|
|
|
|
|
|
|
| 321 |
.table-wrapper {
|
| 322 |
+
width: 100%;
|
| 323 |
overflow-x: auto;
|
| 324 |
margin: 1rem 0;
|
| 325 |
border: 1px solid #e2e8f0;
|
|
|
|
| 330 |
}
|
| 331 |
.prose table {
|
| 332 |
width: 100%;
|
| 333 |
+
min-width: 100%;
|
| 334 |
border-collapse: collapse;
|
| 335 |
margin: 0;
|
| 336 |
}
|
|
|
|
| 378 |
padding-right: 3rem;
|
| 379 |
box-sizing: border-box;
|
| 380 |
}
|
| 381 |
+
/* Ajustements responsive */
|
| 382 |
@media (max-width: 640px) {
|
| 383 |
.message-bubble {
|
| 384 |
max-width: 90%;
|
|
|
|
| 417 |
font-size: 0.9rem;
|
| 418 |
}
|
| 419 |
}
|
| 420 |
+
/* Container pour le textarea et le bouton */
|
| 421 |
.input-wrapper {
|
| 422 |
position: relative;
|
| 423 |
display: flex;
|
|
|
|
| 501 |
</div>
|
| 502 |
<!-- Barre d'options -->
|
| 503 |
<div class="flex items-center justify-between flex-wrap gap-y-2 px-4 py-2 bg-gray-100 dark:bg-gray-800/80 text-sm text-gray-600 dark:text-gray-300">
|
|
|
|
| 504 |
<div class="flex items-center space-x-4 flex-wrap gap-y-2">
|
| 505 |
<label class="flex items-center cursor-pointer tooltip">
|
| 506 |
<span class="mr-2 text-xs sm:text-sm font-medium"><i class="fa-solid fa-globe mr-1.5"></i><span class="hidden sm:inline">Recherche Web</span></span>
|
|
|
|
| 523 |
<span class="tooltip-text">Raisonnement avanc茅 (1 fois/min)</span>
|
| 524 |
</label>
|
| 525 |
</div>
|
|
|
|
| 526 |
<div class="flex items-center space-x-2">
|
| 527 |
<label for="file_upload" class="cursor-pointer flex items-center text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300 tooltip">
|
| 528 |
<i class="fa-solid fa-paperclip"></i>
|
|
|
|
| 1017 |
clearButton.disabled = true;
|
| 1018 |
clearButton.innerHTML = '<i class="fa-solid fa-spinner fa-spin mr-1.5"></i><span class="hidden sm:inline">Effacement...</span>';
|
| 1019 |
try {
|
| 1020 |
+
const response = await fetch(CLEAR_ENDPOINT, {
|
| 1021 |
+
method: 'POST',
|
| 1022 |
+
headers: {
|
| 1023 |
+
'X-Requested-With': 'XMLHttpRequest'
|
| 1024 |
+
}
|
| 1025 |
+
});
|
| 1026 |
const data = await response.json();
|
| 1027 |
if (response.ok && data.success) {
|
| 1028 |
const messagesToRemove = chatMessages.querySelectorAll(':scope > *:not(#loading-indicator)');
|