Skip to content

Commit

Permalink
ELEMENTS-1777: rtl support thumbnail & card
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshkumar1019 committed Dec 17, 2024
1 parent 37e705a commit 27aa848
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions ui/nuxeo-document-thumbnail/nuxeo-document-thumbnail.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ import { I18nBehavior } from '../nuxeo-i18n-behavior';
flex: none;
}
:host([dir="rtl"]) img {
margin: auto auto auto 8px;
}
img {
height: auto;
width: auto;
Expand All @@ -58,10 +62,6 @@ import { I18nBehavior } from '../nuxeo-i18n-behavior';
filter: brightness(1.2);
-webkit-filter: brightness(1.2);
}
:host([dir="rtl"]) img {
margin: auto auto auto 8px;
}
</style>
<img id="img" src="[[_thumbnail(document)]]" alt="[[_title(document)]]" on-error="_error" />
Expand Down
10 changes: 5 additions & 5 deletions ui/widgets/nuxeo-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ import { mixinBehaviors } from '@polymer/polymer/lib/legacy/class.js';
cursor: pointer;
@apply --nuxeo-link-hover;
}
:host([dir="rtl"]) .header .icon {
margin-left: 8px;
margin-right: 0;
}
[hidden] {
display: none !important;
Expand Down Expand Up @@ -99,11 +104,6 @@ import { mixinBehaviors } from '@polymer/polymer/lib/legacy/class.js';
--iron-icon-height: 16px;
}
:host([dir="rtl"]) .header .icon {
margin-left: 8px;
margin-right: 0;
}
.header .toggle {
--iron-icon-width: 20px;
--iron-icon-height: 20px;
Expand Down

0 comments on commit 27aa848

Please sign in to comment.