fix: refine mobile contact photo crop
This commit is contained in:
@@ -372,7 +372,7 @@ test("mobile contact card matches the 402px reference geometry", async ({
|
|||||||
expect(linework.x).toBeLessThanOrEqual(card.x);
|
expect(linework.x).toBeLessThanOrEqual(card.x);
|
||||||
await expect(lineworkLocator).toHaveCSS("overflow", "visible");
|
await expect(lineworkLocator).toHaveCSS("overflow", "visible");
|
||||||
await expect(backgroundImage).toHaveCSS("object-fit", "cover");
|
await expect(backgroundImage).toHaveCSS("object-fit", "cover");
|
||||||
await expect(backgroundImage).toHaveCSS("object-position", "60% 50%");
|
await expect(backgroundImage).toHaveCSS("object-position", "82% 50%");
|
||||||
await expect(backgroundImage).toHaveCSS("filter", "brightness(1.5)");
|
await expect(backgroundImage).toHaveCSS("filter", "brightness(1.5)");
|
||||||
const overlay = await cardLocator
|
const overlay = await cardLocator
|
||||||
.locator(".contact-block__media")
|
.locator(".contact-block__media")
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 166 KiB After Width: | Height: | Size: 238 KiB |
@@ -81,7 +81,7 @@
|
|||||||
.contact-block .contact-block__bg-image {
|
.contact-block .contact-block__bg-image {
|
||||||
filter: brightness(1.5);
|
filter: brightness(1.5);
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
object-position: 60% center;
|
object-position: 82% center;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user