0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-18 01:05:13 +00:00

fix: URL loading broke

This commit is contained in:
Alex 2022-04-22 16:38:21 +12:00
parent ec7f8a9b85
commit a075c4167a
3 changed files with 42 additions and 13 deletions

View file

@ -58,6 +58,29 @@
<yt-text-formatter :textRuns="commentRenderer.contentText.runs"> <yt-text-formatter :textRuns="commentRenderer.contentText.runs">
</yt-text-formatter> </yt-text-formatter>
</collapsable-text> </collapsable-text>
<div class="toolbar">
<div class="toolbar--item">
<v-btn class="toolbar--button like" disabled icon x-small>
<v-icon small left>mdi-thumb-up</v-icon>
</v-btn>
</div>
<div class="toolbar--item">
<span
v-text="commentRenderer.voteCount.simpleText"
class="like-count mr-1 subtitle-2"
></span>
</div>
<div class="toolbar--item">
<v-btn class="toolbar--button dislike" disabled icon x-small>
<v-icon small>mdi-thumb-down</v-icon>
</v-btn>
</div>
<div class="toolbar--item">
<v-btn class="toolbar--button reply" disabled icon x-small>
<v-icon small>mdi-comment</v-icon>
</v-btn>
</div>
</div>
</div> </div>
</div> </div>
</template> </template>
@ -76,7 +99,6 @@
.avatar-thumbnail { .avatar-thumbnail {
margin-right: 0.5rem; margin-right: 0.5rem;
margin-top: 0.5rem;
border-radius: 50%; border-radius: 50%;
width: 48px; width: 48px;
height: 48px; height: 48px;
@ -100,6 +122,12 @@
} }
} }
.toolbar {
display: flex;
flex-direction: row;
align-items: center;
}
.author-badge-name { .author-badge-name {
display: flex; display: flex;
flex-direction: row; flex-direction: row;

View file

@ -1,5 +1,5 @@
<template> <template>
<div class="yt-text-formatter" v-emoji> <div class="yt-text-formatter">
<template v-for="(text, index) in textRuns"> <template v-for="(text, index) in textRuns">
<template v-if="$rendererUtils.checkInternal(text)"> <template v-if="$rendererUtils.checkInternal(text)">
<a <a
@ -31,12 +31,15 @@
draggable="false" draggable="false"
/> />
</template> </template>
<template v-else> {{ text.text }} </template> <template v-else>
<span :key="index" v-emoji>{{ text.text }}</span>
</template>
</template> </template>
</div> </div>
</template> </template>
<script> <script>
import { Browser } from "@capacitor/browser";
export default { export default {
props: { props: {
textRuns: { textRuns: {
@ -44,5 +47,13 @@ export default {
default: () => [], default: () => [],
}, },
}, },
methods: {
async openExternal(url) {
await Browser.open({ url: url });
},
async openInternal(url) {
await this.$router.push(url);
},
},
}; };
</script> </script>

View file

@ -12,7 +12,6 @@
</style> </style>
<script> <script>
import { Browser } from "@capacitor/browser";
import YtTextFormatter from "~/components/UtilRenderers/YtTextFormatter.vue"; import YtTextFormatter from "~/components/UtilRenderers/YtTextFormatter.vue";
export default { export default {
@ -21,14 +20,5 @@ export default {
components: { components: {
YtTextFormatter, YtTextFormatter,
}, },
methods: {
async openExternal(url) {
await Browser.open({ url: url });
},
async openInternal(url) {
await this.$router.push(url);
},
},
}; };
</script> </script>