fix: add Thumbnail field and video result template
MainResult: add Thumbnail field (used by YouTube, images, etc.) video_item.html: new partial for video results with thumbnail display views.go: add templateForResult func + video_item.html to template parse results_inner.html: dispatch to video_item when Template="videos" kafka.css: add .video-result flex layout with thumbnail styling
This commit is contained in:
parent
af23a63a73
commit
4a6559be62
5 changed files with 79 additions and 23 deletions
|
|
@ -805,3 +805,26 @@ html[data-theme="light"] {
|
|||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Video result cards */
|
||||
.video-result {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.video-result .result_thumbnail {
|
||||
flex-shrink: 0;
|
||||
width: 180px;
|
||||
}
|
||||
|
||||
.video-result .result_thumbnail img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
.video-result .result_content_wrapper {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue