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

View File

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

View File

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