Skip to content

Commit

Permalink
Improved layout on browser page if a visualization technique has a lo…
Browse files Browse the repository at this point in the history
…t of tags or the name is very long (Issue #15)
  • Loading branch information
Jens-Koenen committed Feb 8, 2024
1 parent 7507bb9 commit 36b4ea1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions website/components/browser_item.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ export const BrowserItem =
},
template:
`
<div class="card" style="cursor: pointer;" @click="on_browser_item_click_internal">
<img :src="browser_item.images[0]" class="card-img-top" style="height: 150px; object-fit: contain;">
<div class="card h-100" style="cursor: pointer;" @click="on_browser_item_click_internal">
<img :src="browser_item.images[0]" class="card-img-top m-3 mb-0" style="height: 150px; object-fit: contain;">
<div class="card-body">
<h5 class="card-title">{{ browser_item.name }}</h5>
<div class="d-flex flex-wrap">
<tag v-for="tag of browser_item_filter_tags" :tag="tag" class="me-1" is_highlighted="true" @on_tag_click="on_browser_item_tag_click_internal"></tag>
<tag v-for="tag of browser_item_tags" :tag="tag" class="me-1" @on_tag_click="on_browser_item_tag_click_internal"></tag>
<div class="d-flex flex-wrap" style="margin: -0.125rem">
<tag v-for="tag of browser_item_filter_tags" :tag="tag" style="margin: 0.125rem" is_highlighted="true" @on_tag_click="on_browser_item_tag_click_internal"></tag>
<tag v-for="tag of browser_item_tags" :tag="tag" style="margin: 0.125rem" @on_tag_click="on_browser_item_tag_click_internal"></tag>
</div>
</div>
</div>
Expand Down

0 comments on commit 36b4ea1

Please sign in to comment.