feat: 前端微调
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<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>frontend</title>
|
||||
<title>ShortVideo</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
@@ -25,6 +25,17 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Hide scrollbars globally (still scrollable). */
|
||||
* {
|
||||
scrollbar-width: none; /* Firefox */
|
||||
-ms-overflow-style: none; /* IE/Edge legacy */
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
|
||||
6
frontend/src/views/AccountView.vue
vendored
6
frontend/src/views/AccountView.vue
vendored
@@ -339,10 +339,10 @@ watch(
|
||||
|
||||
<style scoped>
|
||||
.login-wrap {
|
||||
min-height: calc(100vh - 56px);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 18px 0 40px;
|
||||
justify-items: center;
|
||||
align-content: start;
|
||||
padding: clamp(56px, 14vh, 160px) 16px 40px;
|
||||
}
|
||||
|
||||
.login-card {
|
||||
|
||||
7
frontend/src/views/HomeView.vue
vendored
7
frontend/src/views/HomeView.vue
vendored
@@ -609,6 +609,13 @@ onBeforeUnmount(() => {
|
||||
overflow-y: auto;
|
||||
scroll-snap-type: y mandatory;
|
||||
scroll-behavior: smooth;
|
||||
scrollbar-width: none; /* Firefox */
|
||||
-ms-overflow-style: none; /* IE/Edge legacy */
|
||||
}
|
||||
|
||||
.scroller::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.center-hint {
|
||||
|
||||
Reference in New Issue
Block a user