Skip to content

Commit 24c359b

Browse files
authored
Merge pull request MedicOneSystems#423 from amvisor/wrap
append truncate after whitespace-nowrap
2 parents 118813a + 58cf5e0 commit 24c359b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/livewire/datatables/datatable.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,14 @@ class="px-3 py-2 text-xs font-medium tracking-wider text-green-500 uppercase bg-
156156
@foreach($this->columns as $column)
157157
@if($column['hidden'])
158158
@if($hideable === 'inline')
159-
<div class="table-cell w-5 @unless($column['wrappable']) whitespace-nowrap @endunless overflow-hidden align-top"></div>
159+
<div class="table-cell w-5 @unless($column['wrappable']) whitespace-nowrap truncate @endunless overflow-hidden align-top"></div>
160160
@endif
161161
@elseif($column['type'] === 'checkbox')
162162
@include('datatables::checkbox', ['value' => $row->checkbox_attribute])
163163
@elseif($column['type'] === 'label')
164164
@include('datatables::label')
165165
@else
166-
<div class="table-cell px-6 py-2 @unless($column['wrappable']) whitespace-nowrap @endunless @if($column['align'] === 'right') text-right @elseif($column['align'] === 'center') text-center @else text-left @endif {{ $this->cellClasses($row, $column) }}">
166+
<div class="table-cell px-6 py-2 @unless($column['wrappable']) whitespace-nowrap truncate @endunless @if($column['align'] === 'right') text-right @elseif($column['align'] === 'center') text-center @else text-left @endif {{ $this->cellClasses($row, $column) }}">
167167
{!! $row->{$column['name']} !!}
168168
</div>
169169
@endif

0 commit comments

Comments
 (0)