vue/attributes-order: [0]
vue/html-closing-bracket-spacing: [2, {startTag: never, endTag: never, selfClosingTag: never}]
vue/max-attributes-per-line: [0]
+ vue/singleline-html-element-content-newline: [0]
vue-scoped-css/enforce-style-type: [0]
<template>
<div ref="root">
<div v-if="loading" class="tw-h-12 tw-w-12 is-loading"/>
- <div v-if="!loading && issue !== null">
- <p><small>{{ issue.repository.full_name }} on {{ createdAt }}</small></p>
- <p><svg-icon :name="icon" :class="['text', color]"/> <strong>{{ issue.title }}</strong> #{{ issue.number }}</p>
- <p>{{ body }}</p>
+ <div v-if="!loading && issue !== null" class="tw-flex tw-flex-col tw-gap-2">
+ <div class="tw-text-12">{{ issue.repository.full_name }} on {{ createdAt }}</div>
+ <div class="flex-text-block">
+ <svg-icon :name="icon" :class="['text', color]"/>
+ <span class="issue-title tw-font-semibold tw-break-anywhere">
+ {{ issue.title }}
+ <span class="index">#{{ issue.number }}</span>
+ </span>
+ </div>
+ <div v-if="body">{{ body }}</div>
<!-- eslint-disable-next-line vue/no-v-html -->
- <div v-html="renderedLabels"/>
+ <div v-if="issue.labels.length" v-html="renderedLabels"/>
</div>
- <div v-if="!loading && issue === null">
- <p><small>{{ i18nErrorOccurred }}</small></p>
- <p>{{ i18nErrorMessage }}</p>
+ <div class="tw-flex tw-flex-col tw-gap-2" v-if="!loading && issue === null">
+ <div class="tw-text-12">{{ i18nErrorOccurred }}</div>
+ <div>{{ i18nErrorMessage }}</div>
</div>
</div>
</template>