This commit is contained in:
team 1
2026-05-09 19:45:15 +02:00
parent dabbc33f07
commit d6727120ae
4 changed files with 64 additions and 12 deletions

View File

@@ -624,21 +624,27 @@ document.addEventListener('DOMContentLoaded', async () => {
deduplicateRetriexSourceChips(container);
const cards = Array.from(container.querySelectorAll('.retriex-meta-card[data-retriex-meta-id]'));
const cardsById = new Map();
cards.forEach((card) => {
const cardId = card.getAttribute('data-retriex-meta-id');
[
['.retriex-meta-card[data-retriex-meta-id]', 'data-retriex-meta-id'],
['.retriex-action-card[data-retriex-action-card-id]', 'data-retriex-action-card-id'],
].forEach(([selector, idAttribute]) => {
Array.from(container.querySelectorAll(selector)).forEach((card) => {
const cardId = card.getAttribute(idAttribute);
if (!cardId) {
return;
}
if (!cardId) {
return;
}
if (!cardsById.has(cardId)) {
cardsById.set(cardId, []);
}
const cardKey = `${selector}:${cardId}`;
cardsById.get(cardId).push(card);
if (!cardsById.has(cardKey)) {
cardsById.set(cardKey, []);
}
cardsById.get(cardKey).push(card);
});
});
cardsById.forEach((group) => {

View File

@@ -551,6 +551,7 @@ body:not(.retriex-show-detail-cards) #chat .retriex-alert {
/* RetrieX chat meta/status cards */
.retriex-meta-card,
.retriex-action-card,
.retriex-alert {
margin: 0 0 1.5rem -.5rem;
border: 0;
@@ -559,7 +560,8 @@ body:not(.retriex-show-detail-cards) #chat .retriex-alert {
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.retriex-meta-card {
.retriex-meta-card,
.retriex-action-card {
padding: 0.85rem 0.95rem;
}
@@ -685,6 +687,11 @@ body:not(.retriex-show-detail-cards) #chat .retriex-alert {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
font-size: 0.7rem !important;
}
.data-retriex-action-prompt{
font-size: 0.7rem !important;
}
.retriex-source-chip {