Skip to content

Commit a23b22f

Browse files
authored
Merge pull request #785 from Lemoncode/feature/#784-relocate-time-display-to-left-in-mobile-device-adorner
feature/#784-relocate-time-display-to-left-in-mobile-device-adorner
2 parents 5f83193 + 1a1b71f commit a23b22f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

public/containers/mobile.svg

Lines changed: 4 additions & 4 deletions
Loading

src/common/components/mock-components/front-containers/mobilephone-shape.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const MobilePhoneShape = forwardRef<any, ShapeProps>((props, ref) => {
4646

4747
const adornerIconSize = 20;
4848
const adornerPadding = 5;
49-
const adornerTotalWidth = adornerIconSize * 3 + 17 * 2 + 30;
49+
const adornerTotalWidth = adornerIconSize * 3 + screenMargin;
5050

5151
// Calculate inner screen coordinates (excluding frame margins)
5252
const screenX = margin + screenMargin; // Left edge of inner screen
@@ -62,7 +62,7 @@ export const MobilePhoneShape = forwardRef<any, ShapeProps>((props, ref) => {
6262
const signalX = adornerStartX + 17;
6363
const batteryX = adornerStartX + 20 * 2;
6464

65-
const timeX = adornerStartX + 23 * 3;
65+
const timeX = screenX + screenMargin;
6666
const timeY = adornerY + 4;
6767
const timeWidth = 40;
6868

@@ -88,7 +88,7 @@ export const MobilePhoneShape = forwardRef<any, ShapeProps>((props, ref) => {
8888
const now = new Date();
8989
setCurrentTime(
9090
now.toLocaleTimeString('es-ES', {
91-
hour: '2-digit',
91+
hour: 'numeric',
9292
minute: '2-digit',
9393
hour12: false,
9494
})

0 commit comments

Comments
 (0)