fix: show full mobile pull quote artwork
This commit is contained in:
@@ -117,7 +117,7 @@ test("mobile pull quote matches the reference scale", async ({ page }) => {
|
|||||||
8,
|
8,
|
||||||
);
|
);
|
||||||
expectNear(vector.x, quote.x, 3);
|
expectNear(vector.x, quote.x, 3);
|
||||||
expectNear(vector.width, quote.width * 1.8, 3);
|
expectNear(vector.width, quote.width, 3);
|
||||||
expectNear(vector.height, quote.height - bandHeight, 3);
|
expectNear(vector.height, quote.height - bandHeight, 3);
|
||||||
await expect(vectorImage).toHaveCSS("max-width", "none");
|
await expect(vectorImage).toHaveCSS("max-width", "none");
|
||||||
await expect(vectorImage).toHaveCSS("object-fit", "fill");
|
await expect(vectorImage).toHaveCSS("object-fit", "fill");
|
||||||
@@ -152,7 +152,7 @@ test("mobile pull quote matches the supplied visual reference", async ({
|
|||||||
"pullquote-reference.png",
|
"pullquote-reference.png",
|
||||||
{
|
{
|
||||||
animations: "disabled",
|
animations: "disabled",
|
||||||
maxDiffPixelRatio: 0.115,
|
maxDiffPixelRatio: 0.111,
|
||||||
threshold: 0.05,
|
threshold: 0.05,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
max-width: none;
|
max-width: none;
|
||||||
object-fit: fill;
|
object-fit: fill;
|
||||||
width: 180%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pull-quote .pull-quote__content {
|
.pull-quote .pull-quote__content {
|
||||||
|
|||||||
Reference in New Issue
Block a user