Skip to content

Commit 285304a

Browse files
committed
fix description height
1 parent 305b008 commit 285304a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/components/description.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</span>
1515
</div>
1616

17-
<Transition v-if="!isMobile && !loading">
17+
<Transition v-if="isMobile && !loading">
1818
<div v-if="description == null" class="logo-container">
1919
<Logo mobile />
2020
</div>
@@ -26,17 +26,16 @@
2626
target="_blank"
2727
rel="noopener"
2828
aria-description="Link to GitHub Source"
29-
>
30-
<img class="github" alt="" :src="githubLogo" />
31-
</a>
29+
v-html="githubLogo"
30+
/>
3231
</div>
3332
</div>
3433
</template>
3534

3635
<script vapor setup lang="ts">
3736
import { ref, watch } from "vue"
3837
39-
import githubLogo from "../assets/github.svg"
38+
import githubLogo from "../assets/github.svg?raw"
4039
4140
import Logo from "./logo.vue"
4241
@@ -56,9 +55,9 @@ watch(
5655
(newVal, oldVar) => {
5756
if (newVal === oldVar) return
5857
59-
height.value = Math.max(desc$.value!.getBoundingClientRect().height + 30, 125)
58+
height.value = Math.max(desc$.value!.getBoundingClientRect().height + 35, 125)
6059
},
61-
{flush: "post"}
60+
{ flush: "post" },
6261
)
6362
</script>
6463

@@ -149,6 +148,7 @@ watch(
149148
background: theme.$button;
150149
border-radius: 100%;
151150
cursor: pointer;
151+
color: #eee;
152152
153153
& > img {
154154
height: 100%;

0 commit comments

Comments
 (0)