修复侧边栏图片圆角不显示的问题

This commit is contained in:
jingrow 2025-10-19 23:49:26 +08:00
parent 47504444ea
commit 47ecf9062c
2 changed files with 9 additions and 5 deletions

View File

@ -263,10 +263,16 @@ const deleteAttachment = (attachment: any) => {
.image-attachment img {
width: 100%;
height: auto;
border-radius: 6px;
border-radius: 8px;
object-fit: contain;
cursor: pointer;
transition: transform 0.2s ease;
overflow: hidden !important;
}
.image-container {
position: relative;
border-radius: 12px;
}
.image-attachment img:hover {
@ -282,10 +288,6 @@ const deleteAttachment = (attachment: any) => {
z-index: 10;
}
.image-container {
position: relative;
}
.image-container img:hover + .image-overlay,
.image-container .image-overlay:hover {
opacity: 1;

View File

@ -100,8 +100,10 @@ const openImageModal = (url: string) => {
.image-card img {
width: 100%;
height: auto;
border-radius: 8px;
object-fit: contain;
display: block;
overflow: hidden !important;
}
.preview-image {