Skip to content

Commit

Permalink
fix(module:image): wrong next/prev btn in rtl mode (#8468)
Browse files Browse the repository at this point in the history
* fix(module:image): wrong next/prev btn in rtl mode

* fix(module:image): wrong next/prev btn in rtl mode

* fix(module:image): wrong next/prev btn in rtl mode
  • Loading branch information
ParsaArvanehPA committed Apr 18, 2024
1 parent 201d0c2 commit 886138d
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion components/image/style/patch.less
@@ -1,5 +1,27 @@
@image-prefix-cls: ~'@{ant-prefix}-image';

.cdk-overlay-backdrop {
&.ant-image-preview-mask {
opacity: 1;
}
}
}

.cdk-global-overlay-wrapper[dir='rtl'] {
.@{image-prefix-cls} {
&-preview {
&-switch-left {
right: 10px;
left: unset;

rotate: 180deg;
}

&-switch-right {
right: unset;
left: 10px;

rotate: 180deg;
}
}
}
}

0 comments on commit 886138d

Please sign in to comment.