Skip to content

Commit

Permalink
more item card tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
momijizukamori committed Jun 13, 2024
1 parent 2d5b5a2 commit 021c4e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/js/components/Result.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
style="white-space: nowrap; overflow-x: hidden; text-overflow: ellipsis;">
<a :href="item.url">{{ item.english_name }}</a>
</p>
<p class="text-muted small"
<p class="text-muted small mb-0"
style="white-space: nowrap; overflow-x: hidden; text-overflow: ellipsis;"
:title="item.foreign_name">
{{ item.foreign_name ? item.foreign_name : '&nbsp;' }}
Expand Down
4 changes: 2 additions & 2 deletions resources/views/items/card.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@
<ul class="list-group list-group-flush">
<li class="list-group-item py-1 px-3">
<div class="d-flex small">
<p class="p-0 m-0 text-center font-weight-bolder flex-fill" style="white-space: nowrap; overflow-x: ellipsis;">
<p class="p-0 m-0 text-center flex-fill" style="white-space: nowrap; overflow-x: ellipsis;">
<a href="{{ $item->brand->url }}" title="{{ $item->brand->name }}">
{{$item->brand->name}}
{{-- deliberately chose 21 as the cutoff since lots of brand names fit on word boundaries. --}}
</a>
</p>
</div>
<div class="d-flex small">
<p class="p-0 m-0 text-center flex-fill" style="white-space: nowrap; overflow-x: hidden">
<p class="p-0 m-0 text-center small flex-fill" style="white-space: nowrap; overflow-x: hidden">
@foreach($item->categories as $category)
<a href="{{ $category->url }}" class="category">
{{ $category->name }}
Expand Down

0 comments on commit 021c4e6

Please sign in to comment.