我不确定这是否是之前问过的问题 - 新的灯箱无法处理非常长的图片标题。这会阻止用户点击右上角的按钮
4 个赞
你好 ![]()
新的灯箱仍处于实验阶段,但我对其进行了一些用户体验对齐调整。
它包含对轮播图像尺寸和标题的修复。
.d-lightbox {
&__carousel-item {
object-fit: cover;
}
.d-lightbox__main-title {
margin-left: 0.5rem;
max-width: 100%;
}
&.has-expanded-title {
.d-lightbox {
&__content {
gap: 2em 0;
}
&__main-title {
max-height: 100px;
overflow-y: auto;
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-all;
word-break: break-word;
-webkit-hyphens: auto;
hyphens: auto;
}
}
}
&:not(.has-expanded-title) {
.d-lightbox {
&__main-title {
@include line-clamp(1);
}
}
}
}
4 个赞

