File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/app/content/highlights/components Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ export const minimalWidthForCardsWithSearchResults = '(max-width: ' +
4848
4949const overlapDisplay = css `
5050 ${ ( props : CardProps ) => ! ! props . isActive && css `
51- left : unset ;
52- right : ${ cardMinWindowMargin } rem ;
51+ left : calc ( 75 vw - ( ${ 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
6262const 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
You can’t perform that action at this time.
0 commit comments