Skip to content

Commit cca701e

Browse files
committed
Add more layout for RTL.
1 parent 89c0807 commit cca701e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/cards/cards.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,11 @@ const Cards = props => {
270270
const cardHorizontalDragOffset = 400; // ~80% of card width
271271
const cardVerticalDragOffset = expanded ? 257 : 0; // ~80% of card height, if expanded
272272
const menuBarHeight = 48; // TODO: get pre-calculated from elsewhere?
273+
const wideCardWidth = 500;
273274

274275
if (x === 0 && y === 0) {
275276
// initialize positions
276-
x = isRtl ? -292 : 292;
277+
x = isRtl ? (-190 - wideCardWidth - cardHorizontalDragOffset) : 292;
277278
x += cardHorizontalDragOffset;
278279
// The tallest cards are about 320px high, and the default position is pinned
279280
// to near the bottom of the blocks palette to allow room to work above.

0 commit comments

Comments
 (0)