diff --git a/catalog/templates/edition.html b/catalog/templates/edition.html index d988044d..8ae87ea0 100644 --- a/catalog/templates/edition.html +++ b/catalog/templates/edition.html @@ -93,7 +93,9 @@ alt="{{ b.display_title }} {{ b.title_deco }}" loading="lazy">
- {{ b.display_title }} {{ b.title_deco }} + {{ b.display_title }} + {{ b.pub_house }} + {{ b.pub_year }}
diff --git a/common/static/scss/_gallery.scss b/common/static/scss/_gallery.scss index d6a5de3e..860f5c34 100644 --- a/common/static/scss/_gallery.scss +++ b/common/static/scss/_gallery.scss @@ -120,3 +120,30 @@ gap: var(--pico-spacing) !important; } } + +#sibling .cards{ + a>div { + font-size: 80%; + word-wrap: break-word; + min-height: 2.5rem; + span { + display: block; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; /* 确保每一行都显示省略号 */ + width: 100%; /* 确保容器宽度 */ + } + } +} + +@media (min-width: 769px) { + #sibling .cards { + grid-auto-columns: calc(calc(100% / 4) - var(--pico-block-spacing-horizontal)); + } +} + +@media (min-width: 1281px) { + #sibling .cards { + grid-auto-columns: calc(calc(100% / 6) - var(--pico-block-spacing-horizontal)); + } +}