Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idouban-picture 图片显示溢出 #175

Closed
brycezhang opened this issue Jun 6, 2024 · 2 comments
Closed

idouban-picture 图片显示溢出 #175

brycezhang opened this issue Jun 6, 2024 · 2 comments
Assignees

Comments

@brycezhang
Copy link

brycezhang commented Jun 6, 2024

node 版本: 22.0.0

hexo 版本: 7.2.0

hexo-douban 版本: 2.3.3

问题描述:
idouban-picture img 没有设置高度限制,会出现显示溢出的问题,我临时手动添加样式控制了一下,不过base64的样式还是需要改一下。
iShot_2024-06-06_13 49 24

.idouban-picture img {
    max-width: 100%;
}

idouban-picture img 应该设置一个最大高度,不能超过 idouban-itemmin-height-2*padding,也就是130px。

.idouban-item {
    clear: both;
    border-bottom: 1px solid #ddd;
    min-height: 150px;
    padding: 10px 0;
    position: relative;
}
@mythsman mythsman self-assigned this Jun 6, 2024
@mythsman
Copy link
Owner

mythsman commented Jun 6, 2024

试下 v2.3.5

@brycezhang
Copy link
Author

可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants