From 815bbffb150640d3fbb87f493baeb2c1a5c48d3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=AA=E5=BF=83=E7=A6=BE?= Date: Sat, 13 May 2023 21:28:19 +0800 Subject: [PATCH] fix: relative position in h1 and WelcomeItem --- template/code/default/src/components/HelloWorld.vue | 1 + template/code/router/src/components/HelloWorld.vue | 1 + template/code/router/src/components/WelcomeItem.vue | 1 + template/code/typescript-default/src/components/HelloWorld.vue | 1 + template/code/typescript-default/src/components/WelcomeItem.vue | 1 + template/code/typescript-router/src/components/HelloWorld.vue | 1 + template/code/typescript-router/src/components/WelcomeItem.vue | 1 + 7 files changed, 7 insertions(+) diff --git a/template/code/default/src/components/HelloWorld.vue b/template/code/default/src/components/HelloWorld.vue index 0a0988bcb..5fb372c9c 100644 --- a/template/code/default/src/components/HelloWorld.vue +++ b/template/code/default/src/components/HelloWorld.vue @@ -22,6 +22,7 @@ defineProps({ h1 { font-weight: 500; font-size: 2.6rem; + position: relative; top: -10px; } diff --git a/template/code/router/src/components/HelloWorld.vue b/template/code/router/src/components/HelloWorld.vue index 0a0988bcb..5fb372c9c 100644 --- a/template/code/router/src/components/HelloWorld.vue +++ b/template/code/router/src/components/HelloWorld.vue @@ -22,6 +22,7 @@ defineProps({ h1 { font-weight: 500; font-size: 2.6rem; + position: relative; top: -10px; } diff --git a/template/code/router/src/components/WelcomeItem.vue b/template/code/router/src/components/WelcomeItem.vue index a5eca70f8..ac366d074 100644 --- a/template/code/router/src/components/WelcomeItem.vue +++ b/template/code/router/src/components/WelcomeItem.vue @@ -16,6 +16,7 @@ .item { margin-top: 2rem; display: flex; + position: relative; } .details { diff --git a/template/code/typescript-default/src/components/HelloWorld.vue b/template/code/typescript-default/src/components/HelloWorld.vue index 8901544c3..e1a721cc1 100644 --- a/template/code/typescript-default/src/components/HelloWorld.vue +++ b/template/code/typescript-default/src/components/HelloWorld.vue @@ -19,6 +19,7 @@ defineProps<{ h1 { font-weight: 500; font-size: 2.6rem; + position: relative; top: -10px; } diff --git a/template/code/typescript-default/src/components/WelcomeItem.vue b/template/code/typescript-default/src/components/WelcomeItem.vue index ba0def33c..6d7086aea 100644 --- a/template/code/typescript-default/src/components/WelcomeItem.vue +++ b/template/code/typescript-default/src/components/WelcomeItem.vue @@ -16,6 +16,7 @@ .item { margin-top: 2rem; display: flex; + position: relative; } .details { diff --git a/template/code/typescript-router/src/components/HelloWorld.vue b/template/code/typescript-router/src/components/HelloWorld.vue index 23afedd71..38d821ef8 100644 --- a/template/code/typescript-router/src/components/HelloWorld.vue +++ b/template/code/typescript-router/src/components/HelloWorld.vue @@ -19,6 +19,7 @@ defineProps<{ h1 { font-weight: 500; font-size: 2.6rem; + position: relative; top: -10px; } diff --git a/template/code/typescript-router/src/components/WelcomeItem.vue b/template/code/typescript-router/src/components/WelcomeItem.vue index ba0def33c..6d7086aea 100644 --- a/template/code/typescript-router/src/components/WelcomeItem.vue +++ b/template/code/typescript-router/src/components/WelcomeItem.vue @@ -16,6 +16,7 @@ .item { margin-top: 2rem; display: flex; + position: relative; } .details {