From 93fb34532f87a1a1e0ef09ba1b94a31d83c6ab6b Mon Sep 17 00:00:00 2001 From: icefire <1028247921@qq.com> Date: Tue, 15 Oct 2024 21:13:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=89=8B=E6=9C=BA=E6=A1=86=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Components/deviceFrame/index.js | 23 +++++++++++++---------- src/Components/pane/index.css | 17 ++++++++--------- src/Components/pane/index.js | 2 +- src/images/android-h.png | Bin 16074 -> 3585 bytes src/images/android-v.png | Bin 15175 -> 5006 bytes src/images/iphone-v.png | Bin 22665 -> 5944 bytes 6 files changed, 22 insertions(+), 20 deletions(-) diff --git a/src/Components/deviceFrame/index.js b/src/Components/deviceFrame/index.js index 28a08eb..447cd98 100644 --- a/src/Components/deviceFrame/index.js +++ b/src/Components/deviceFrame/index.js @@ -12,29 +12,32 @@ import React, { useEffect, useState } from "react"; import { BaseUrl } from "../../constants"; import { Alert, Snackbar } from "@mui/material"; import { useTranslation } from "react-i18next"; +import zIndex from "@mui/material/styles/zIndex"; var configMap = { "android-h": { - bkg: androidHPng, - width: "512px", - height: "286px", - offsetv: "5px", + bkg: androidVPng, + rotate: true, + width: "666px", + height: "321px", + offsetv: "4px", }, "android-v": { bkg: androidVPng, - width: "286px", - height: "512px", + width: "321px", + height: "666px", offsetv: "5px", }, "iphone-h": { - bkg: iphoneHPng, - width: "628px", + bkg: iphoneVPng, + rotate: true, + width: "692px", height: "322px", }, "iphone-v": { bkg: iphoneVPng, width: "322px", - height: "628px", + height: "693px", }, "ipad-h": { bkg: ipadHPng, @@ -98,7 +101,7 @@ function DeviceFrame(props) {
- background + background {props.htmlUrl && (