Skip to content

Commit 2836ede

Browse files
chore: add aspect ratio labels to bottom grid lines in header crop
- Add BottomInnerRatioLabel and BottomOuterRatioLabel styled components - Position labels on bottom two grid lines matching top labels style - Update .gitignore to exclude .playwright-mcp directory 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 368c95e commit 2836ede

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,5 @@ tsconfig.vitest-temp.json
7676
certificates
7777

7878
# Claude
79-
.claude
79+
.claude
80+
.playwright-mcp

src/components/@molecules/ProfileEditor/Header/HeaderCrop.tsx

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,32 @@ const AspectRatioLabel = styled.div(
175175
const OuterRatioLabel = styled(AspectRatioLabel)(
176176
() => css`
177177
top: 10%;
178-
right: 90%;
178+
right: calc(90% + 0.25rem);
179+
transform: translateY(-50%);
179180
`,
180181
)
181182

182183
const InnerRatioLabel = styled(AspectRatioLabel)(
183184
() => css`
184185
top: calc(10% + 80% * 0.25);
185-
right: 90%;
186+
right: calc(90% + 0.25rem);
187+
transform: translateY(-50%);
188+
`,
189+
)
190+
191+
const BottomInnerRatioLabel = styled(AspectRatioLabel)(
192+
() => css`
193+
top: calc(10% + 80% * 0.75);
194+
right: calc(90% + 0.25rem);
195+
transform: translateY(-50%);
196+
`,
197+
)
198+
199+
const BottomOuterRatioLabel = styled(AspectRatioLabel)(
200+
() => css`
201+
bottom: 10%;
202+
right: calc(90% + 0.25rem);
203+
transform: translateY(50%);
186204
`,
187205
)
188206

@@ -545,6 +563,8 @@ export const CropComponent = ({
545563
<ImageCropFrame as={CropFrameSVG} />
546564
<OuterRatioLabel aria-label="Outer crop frame aspect ratio 3:1">3:1</OuterRatioLabel>
547565
<InnerRatioLabel aria-label="Inner grid lines aspect ratio 6:1">6:1</InnerRatioLabel>
566+
<BottomInnerRatioLabel aria-label="Bottom inner grid line aspect ratio 6:1">6:1</BottomInnerRatioLabel>
567+
<BottomOuterRatioLabel aria-label="Bottom outer crop frame aspect ratio 3:1">3:1</BottomOuterRatioLabel>
548568
<ImageCropGuides>
549569
<span />
550570
<span />

0 commit comments

Comments
 (0)