refactor:view_in_phone

This commit is contained in:
dichgrem
2025-11-14 11:07:25 +08:00
parent 4296fab830
commit 17383683bf
3 changed files with 30 additions and 18 deletions

View File

@@ -1,13 +1,17 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>todos</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover">
<title>todos</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>

View File

@@ -70,11 +70,13 @@ export default {
<style>
#app {
width: 600px;
margin: 50px auto;
padding: 20px;
width: 100%;
max-width: 600px;
margin: 20px auto;
padding: 15px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
border-radius: 10px;
background: white;
box-sizing: border-box;
}
</style>

View File

@@ -20,14 +20,20 @@ h1 {
}
input {
width: 90%;
max-width: 500px;
width: 100%;
max-width: 400px;
margin: 0 auto;
padding: 12px;
font-size: 16px;
border: 1px solid #ddd;
border: 2px solid #409eff;
border-radius: 6px;
outline: none;
transition: 0.3s;
display: block;
box-sizing: border-box;
}
input {
-webkit-text-size-adjust: 100%;
}
.input-wrapper {