Wrap description text.

And remove v-html for channels.
This commit is contained in:
FireMasterK 2021-06-07 22:55:16 +05:30
parent 9ae85f6207
commit 20ad39b327
No known key found for this signature in database
GPG Key ID: 8DFF5DD33E93DB58
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
<div v-if="channel" v-show="!channel.error"> <div v-if="channel" v-show="!channel.error">
<h1 class="uk-text-center"><img height="48" width="48" v-bind:src="channel.avatarUrl" />{{ channel.name }}</h1> <h1 class="uk-text-center"><img height="48" width="48" v-bind:src="channel.avatarUrl" />{{ channel.name }}</h1>
<img v-if="channel.bannerUrl" v-bind:src="channel.bannerUrl" style="width: 100%" loading="lazy" /> <img v-if="channel.bannerUrl" v-bind:src="channel.bannerUrl" style="width: 100%" loading="lazy" />
<p v-html="purifyHTML(this.channel.description)" style="white-space: pre"></p> <p style="white-space: pre-wrap">{{ channel.description }}</p>
<hr /> <hr />

View File

@ -3,7 +3,7 @@
<button uk-toggle="target: #stacktrace" class="uk-button uk-button-small" style="background: #222" type="button"> <button uk-toggle="target: #stacktrace" class="uk-button uk-button-small" style="background: #222" type="button">
Show More Show More
</button> </button>
<p id="stacktrace" style="white-space: pre" hidden>{{ error }}</p> <p id="stacktrace" style="white-space: pre-wrap" hidden>{{ error }}</p>
</template> </template>
<script> <script>