Skip to content

Commit ed304da

Browse files
Update detail panel
1 parent 648baec commit ed304da

3 files changed

Lines changed: 91 additions & 22 deletions

File tree

bundle.js

Lines changed: 9 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ui/composants/panneau_detail.multi

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ déf _rendre_detail_mouvement(entite: dictionnaire) -> chaine:
5959

6060
# Format simplifié (render: block)
6161
html = '<div class="detail-section">'
62+
html = html + '<p class="detail-kicker">' + _t("runtime.entityType.movement") + '</p>'
6263
html = html + '<h3>' + label + '</h3>'
6364

6465
si debut ou fin:
@@ -118,8 +119,10 @@ déf _rendre_detail_artiste(entite: dictionnaire) -> chaine:
118119
image_val = donnees.obtenir("image", {}).obtenir("value", "")
119120
html = '<div class="detail-section">'
120121
si image_val:
121-
url_vignette = utilitaires.media.construire_url_vignette(image_val, 200)
122+
url_vignette = utilitaires.media.construire_url_vignette(image_val, 150)
122123
html = html + '<div class="detail-image"><img src="' + url_vignette + '" alt="' + label + '" loading="lazy" class="detail-thumb" /></div>'
124+
html = html + '<div class="detail-body">'
125+
html = html + '<p class="detail-kicker">' + _t("runtime.entityType.artist") + '</p>'
123126
html = html + '<h3>' + label + '</h3>'
124127

125128
si naissance ou deces:
@@ -137,6 +140,7 @@ déf _rendre_detail_artiste(entite: dictionnaire) -> chaine:
137140
html = html + '<button class="detail-traj-btn" onclick="' + traj_onclick + '">' + traj_label + '</button>'
138141
html = html + '</div>'
139142
html = html + '</div>'
143+
html = html + '</div>'
140144
retour html
141145

142146

@@ -151,8 +155,10 @@ déf _rendre_detail_oeuvre(entite: dictionnaire) -> chaine:
151155

152156
html = '<div class="detail-section">'
153157
si image_val:
154-
url_vignette = utilitaires.media.construire_url_vignette(image_val, 300)
158+
url_vignette = utilitaires.media.construire_url_vignette(image_val, 200)
155159
html = html + '<div class="detail-image"><img src="' + url_vignette + '" alt="' + label + '" loading="lazy" class="detail-thumb" /></div>'
160+
html = html + '<div class="detail-body">'
161+
html = html + '<p class="detail-kicker">' + _t("runtime.entityType.work") + '</p>'
156162
html = html + '<h3>' + label + '</h3>'
157163

158164
si createur_label:
@@ -164,6 +170,7 @@ déf _rendre_detail_oeuvre(entite: dictionnaire) -> chaine:
164170
si musee_label:
165171
html = html + '<p class="detail-row">' + _ti("detail.artwork.museum", {"value": musee_label}) + '</p>'
166172

173+
html = html + '</div>'
167174
html = html + '</div>'
168175
retour html
169176

styles.css

Lines changed: 73 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2476,22 +2476,16 @@
24762476
display: none;
24772477
overflow: hidden;
24782478
margin-top: 20px;
2479-
border: 2px solid var(--line-soft);
2480-
border-radius: var(--radius-xl);
2481-
background:
2482-
linear-gradient(180deg, rgba(7, 14, 24, 0.96), rgba(10, 18, 30, 0.94)),
2483-
radial-gradient(circle at top right, rgba(214, 164, 88, 0.08), transparent 35%);
2484-
box-shadow: var(--shadow-panel), 0 0 36px rgba(139, 233, 253, 0.12);
2485-
-webkit-backdrop-filter: blur(22px);
2486-
backdrop-filter: blur(22px);
2479+
border: 1px solid var(--line-soft);
2480+
border-radius: var(--radius-sm);
2481+
background: var(--bg-panel);
2482+
-webkit-backdrop-filter: blur(16px);
2483+
backdrop-filter: blur(16px);
24872484
}
24882485

24892486
html.theme-light .detail-panel-overlay {
2490-
background:
2491-
linear-gradient(180deg, rgba(248, 246, 242, 0.98), rgba(245, 243, 240, 0.96)),
2492-
radial-gradient(circle at top right, rgba(43, 143, 134, 0.06), transparent 35%) !important;
2493-
border-color: rgba(0, 0, 0, 0.15) !important;
2494-
box-shadow: var(--shadow-panel), 0 0 36px rgba(77, 182, 172, 0.08) !important;
2487+
background: rgba(248, 246, 242, 0.98) !important;
2488+
border-color: rgba(0, 0, 0, 0.12) !important;
24952489
}
24962490

24972491
.detail-panel-overlay.is-active {
@@ -2535,27 +2529,88 @@
25352529

25362530
#__ml_detail_root .detail-section {
25372531
background: none;
2532+
display: flex;
2533+
flex-direction: row;
2534+
gap: 16px;
2535+
align-items: flex-start;
25382536
}
25392537

25402538
#__ml_detail_root .detail-image {
2541-
margin: 0 0 14px;
2539+
flex: 0 0 88px;
2540+
width: 88px;
25422541
overflow: hidden;
2543-
border-radius: 8px;
2542+
border-radius: 4px;
25442543
background: rgba(255, 255, 255, 0.04);
2545-
border: 1px solid rgba(255, 255, 255, 0.08);
2544+
border: 1px solid rgba(255, 255, 255, 0.1);
25462545
}
25472546

25482547
#__ml_detail_root .detail-thumb {
25492548
display: block;
2550-
width: 100%;
2551-
max-height: 260px;
2549+
width: 88px;
2550+
height: 120px;
25522551
object-fit: cover;
25532552
}
25542553

2554+
#__ml_detail_root .detail-body {
2555+
flex: 1;
2556+
min-width: 0;
2557+
display: flex;
2558+
flex-direction: column;
2559+
gap: 4px;
2560+
}
2561+
25552562
html.theme-light #__ml_detail_root .detail-section {
25562563
background: none !important;
25572564
}
25582565

2566+
html.theme-light #__ml_detail_root .detail-image {
2567+
background: rgba(0, 0, 0, 0.04) !important;
2568+
border-color: rgba(0, 0, 0, 0.12) !important;
2569+
}
2570+
2571+
#__ml_detail_root .detail-section h3 {
2572+
margin: 0 0 6px;
2573+
font-size: 1.05rem;
2574+
line-height: 1.25;
2575+
}
2576+
2577+
#__ml_detail_root .detail-row {
2578+
margin: 4px 0 0;
2579+
font-size: 0.87rem;
2580+
}
2581+
2582+
#__ml_detail_root .detail-actions {
2583+
margin-top: 10px;
2584+
}
2585+
2586+
#__ml_detail_root .detail-traj-btn,
2587+
#__ml_detail_root .detail-geo-btn {
2588+
display: inline-block;
2589+
padding: 4px 10px;
2590+
font-family: "Courier New", monospace;
2591+
font-size: 0.68rem;
2592+
letter-spacing: 0.12em;
2593+
text-transform: uppercase;
2594+
color: var(--accent-cyan);
2595+
border: 1px solid var(--accent-cyan);
2596+
border-radius: 3px;
2597+
background: transparent;
2598+
cursor: pointer;
2599+
transition: box-shadow var(--transition-fast), background var(--transition-fast);
2600+
}
2601+
2602+
#__ml_detail_root .detail-traj-btn:hover,
2603+
#__ml_detail_root .detail-geo-btn:hover {
2604+
box-shadow: 0 0 8px var(--accent-cyan);
2605+
background: rgba(139, 233, 253, 0.06);
2606+
}
2607+
2608+
html.theme-light #__ml_detail_root .detail-traj-btn,
2609+
html.theme-light #__ml_detail_root .detail-geo-btn {
2610+
color: #007aaa !important;
2611+
border-color: #007aaa !important;
2612+
}
2613+
25592614
#__ml_detail_root button,
25602615
#__ml_detail_root a {
25612616
color: var(--text-main);

0 commit comments

Comments
 (0)