From e52878d599be4988634a1d95c452de7e36e4a802 Mon Sep 17 00:00:00 2001 From: Etienne Delvarre Date: Wed, 3 Jun 2026 13:50:54 +0200 Subject: [PATCH] Ressources: clickable links, auto video thumbnails (YouTube/Vimeo) - Card shows clickable domain link with external-link icon - Modal shows "Ouvrir le lien" under URL field - Auto-generates thumbnail from YouTube/Vimeo URLs when no image uploaded - Card rendering switched from innerHTML to DOM methods Co-Authored-By: Claude Opus 4.6 --- public/index.html | 116 +++++++++++++++++++++++++++++++++++++++------- 1 file changed, 99 insertions(+), 17 deletions(-) diff --git a/public/index.html b/public/index.html index 3ea67c8..cff25e9 100644 --- a/public/index.html +++ b/public/index.html @@ -516,6 +516,13 @@ window.dispatchEvent(new Event('tiptap-loaded')); .res-card-cat { font-size: 12px; color: var(--accent); font-weight: 500; margin-bottom: 6px; } .res-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .res-card-tags { margin-top: 8px; display: flex; gap: 4px; flex-wrap: wrap; } + .res-card-link { margin-top: 8px; font-size: 12px; display: flex; align-items: center; gap: 4px; } + .res-card-link a { color: var(--accent); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } + .res-card-link a:hover { text-decoration: underline; } + .res-card-link svg { width: 12px; height: 12px; flex-shrink: 0; stroke: var(--accent); fill: none; stroke-width: 2; } + .res-modal-link { margin-top: 4px; } + .res-modal-link a { color: var(--accent); text-decoration: none; font-size: 14px; word-break: break-all; } + .res-modal-link a:hover { text-decoration: underline; } /* Responsive */ @media (max-width: 768px) { @@ -829,7 +836,7 @@ window.dispatchEvent(new Event('tiptap-loaded'));
-
+