Skip to content

Commit ca1d517

Browse files
committed
CORE-1318
1 parent 908a2c9 commit ca1d517

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/app/content/highlights/components/cardStyles.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export const minimalWidthForCardsWithSearchResults = '(max-width: ' +
4848

4949
const overlapDisplay = css`
5050
${(props: CardProps) => !!props.isActive && css`
51-
left: unset;
52-
right: ${cardMinWindowMargin}rem;
51+
left: calc(75vw - (${contentTextWidth}rem / 2) + ${cardFocusedContentMargin}rem);
52+
right: unset;
5353
top: ${props.highlightOffsets
5454
? props.highlightOffsets.bottom
5555
: getHighlightBottomOffset(props.container, props.highlight)}px;
@@ -60,12 +60,11 @@ const overlapDisplay = css`
6060
`;
6161

6262
const rightSideDisplay = css`
63-
left: unset;
64-
right: 0;
63+
left: calc(50% + (${contentTextWidth}rem / 2) + ${cardContentMargin}rem);
64+
right: unset;
6565
top: ${(props: CardProps) => `${props.topOffset || getHighlightBottomOffset(props.container, props.highlight)}px;`}
6666
${(props: CardProps) => !!props.isActive && css`
6767
left: calc(50% + (${contentTextWidth}rem / 2) + ${cardFocusedContentMargin}rem);
68-
right: unset;
6968
`}
7069
`;
7170

0 commit comments

Comments
 (0)