Skip to content

Commit

Permalink
fix: responsivity - don't wrap links in square brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
AloisSeckar committed Feb 24, 2024
1 parent ee18c2a commit fb47c36
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions components/item/Article.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@
<div class="html-content text-left sm:text-justify">
<div v-if="detail" class="py-2" v-html="item.content" />
<div v-else class="pt-1">
[ <NuxtLink :to="{ path: articlePath }">
[&nbsp;<NuxtLink :to="{ path: articlePath }">
{{ $t('articles.read') }}
</NuxtLink> ]
</NuxtLink>&nbsp;]
</div>
<div v-if="detail && item.elrhGallery" class="mt-2 pt-1 border-t-2">
[ <NuxtLink :to="{ path: '/gallery/' + item.elrhGallery.galleryId }">
[&nbsp;<NuxtLink :to="{ path: '/gallery/' + item.elrhGallery.galleryId }">
{{ $t('articles.gallery') }}
</NuxtLink> ]
</NuxtLink>&nbsp;]
</div>
</div>
</div>
Expand Down
12 changes: 6 additions & 6 deletions components/item/Gallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
<span v-if="longDscr" v-html="item.dscr?.substring(0, 200) + '...'" />
<span v-else v-html="item.dscr" />
<span v-if="longDscr">
[ <NuxtLink v-if="longDscr" :to="{ path: '/gallery/' + item.galleryId }">
{{ $t('galleries.read-more') }}</NuxtLink> ]
[&nbsp;<NuxtLink v-if="longDscr" :to="{ path: '/gallery/' + item.galleryId }">
{{ $t('galleries.read-more') }}</NuxtLink>&nbsp;]
</span>
</div>
<div>
Expand All @@ -45,9 +45,9 @@
</div>
<div v-if="(!detail && images > 5)" class="m-1 leading-6">
<br>
[ <NuxtLink :to="{ path: '/gallery/' + item.galleryId }">
[&nbsp;<NuxtLink :to="{ path: '/gallery/' + item.galleryId }">
{{ $t('galleries.see-more') }}
</NuxtLink> ]
</NuxtLink>&nbsp;]
</div>
</div>
</div>
Expand All @@ -60,8 +60,8 @@
{{ $t('galleries.images-none') }}
</span>
<span v-if="!detail">
[ <NuxtLink :to="{ path: '/gallery/' + item.galleryId }">
{{ $t('galleries.images-view') }}</NuxtLink> ]
[&nbsp;<NuxtLink :to="{ path: '/gallery/' + item.galleryId }">
{{ $t('galleries.images-view') }}</NuxtLink>&nbsp;]
</span>
</div>
<div v-if="detail">
Expand Down
4 changes: 2 additions & 2 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
<ItemNews :item="item" />
</div>
<div>
[ <NuxtLink to="/news">
[&nbsp;<NuxtLink to="/news">
{{ $t('index.news-all') }}
</NuxtLink> ]
</NuxtLink>&nbsp;]
</div>
</div>
</div>
Expand Down

0 comments on commit fb47c36

Please sign in to comment.