Skip to content

Commit

Permalink
fix: upload preview (#1681)
Browse files Browse the repository at this point in the history
Co-authored-by: sheepluo <sheepluo@tencent.com>
  • Loading branch information
chaishi and sheepluo authored Dec 18, 2023
1 parent c7b7f1c commit e0419b5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 33 deletions.
65 changes: 33 additions & 32 deletions style/web/components/image-viewer/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -261,39 +261,40 @@
right: 0;
background-image: linear-gradient(to right, rgba(255, 255, 255, 0%), @bg-color-container);
}
}
}

.@{prefix}-image-viewer__header-trans {
height: 100%;
transition: transform @anim-duration-base;
display: flex;
align-items: center;
justify-content: center;
gap: @spacer-s;
margin-left: @image-viewer-header-box-width-margin-left;

.@{prefix}-image-viewer__header-box {
box-sizing: border-box;
width: @image-viewer-header-box-width;
height: @image-viewer-header-box-height;
transition: @anim-duration-base;
overflow: hidden;
border-radius: @border-radius-default;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid transparent;
background-color: @bg-color-secondarycontainer;

.@{prefix}-image-viewer__header-img {
width: auto;
height: 100%;
}

&:hover, &.@{prefix}-is-active {
border-color: @brand-color;
}
}
}
.@{prefix}-image-viewer__header-trans {
height: 100%;
transition: transform @anim-duration-base;
display: flex;
align-items: center;
justify-content: center;
gap: @spacer-s;
margin-left: @image-viewer-header-box-width-margin-left;
}

.@{prefix}-image-viewer__header-box {
box-sizing: border-box;
width: @image-viewer-header-box-width;
height: @image-viewer-header-box-height;
position: relative;
transition: @anim-duration-base;
overflow: hidden;
border-radius: @border-radius-default;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid transparent;
background-color: @bg-color-secondarycontainer;

.@{prefix}-image-viewer__header-img {
width: auto;
height: 100%;
}

&:hover, &.@{prefix}-is-active {
border-color: @brand-color;
}
}

Expand Down
2 changes: 1 addition & 1 deletion style/web/components/upload/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@
.hover-transition(color);
}

.@{prefix}-upload__single-input-clear {
.t-icon.@{prefix}-upload__single-input-clear {
display: none;
}

Expand Down

0 comments on commit e0419b5

Please sign in to comment.