quote post right-hand padding
This commit is contained in:
@@ -171,7 +171,7 @@ export function Gallery({
|
|||||||
const ps = window.getComputedStyle(parent)
|
const ps = window.getComputedStyle(parent)
|
||||||
const pl = parseFloat(ps.paddingLeft)
|
const pl = parseFloat(ps.paddingLeft)
|
||||||
const pr = parseFloat(ps.paddingRight)
|
const pr = parseFloat(ps.paddingRight)
|
||||||
if (pl >= 8 && pr >= 8 && ps.cursor === 'pointer') {
|
if (pl >= 8 && pr >= 8) {
|
||||||
const parentRect = parent.getBoundingClientRect()
|
const parentRect = parent.getBoundingClientRect()
|
||||||
const il = galleryRect.left - parentRect.left
|
const il = galleryRect.left - parentRect.left
|
||||||
insetLeftRef.current = il
|
insetLeftRef.current = il
|
||||||
@@ -332,11 +332,11 @@ export function Gallery({
|
|||||||
</View>
|
</View>
|
||||||
</Slide>
|
</Slide>
|
||||||
))}
|
))}
|
||||||
{isBleed && insetRight > 0 && (
|
{(isBleed ? insetRight > 0 : isWithinQuote) && (
|
||||||
<div
|
<div
|
||||||
aria-hidden
|
aria-hidden
|
||||||
style={{
|
style={{
|
||||||
flex: `0 0 ${Math.max(0, insetRight - ITEM_GAP)}px`,
|
flex: `0 0 ${Math.max(0, (isBleed ? insetRight : QUOTE_PADDING) - ITEM_GAP)}px`,
|
||||||
minWidth: 0,
|
minWidth: 0,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user