Skip to content

Commit

Permalink
[resources/views]: Improve style on Datatables when using responsive …
Browse files Browse the repository at this point in the history
…extension (#1320)
  • Loading branch information
dfsmania authored Nov 9, 2024
1 parent 4dafd79 commit fbb7064
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion resources/views/components/tool/datatable.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</script>
@endpush

{{-- Add CSS styling --}}
{{-- Add CSS styling for beautify option --}}

@isset($beautify)
@push('css')
Expand All @@ -59,3 +59,20 @@
</style>
@endpush
@endisset

{{-- Improve CSS styling when using responsive extension --}}

@if(! empty($config['responsive']))
@once
@push('css')
<style type="text/css">
.dataTable .child .dtr-details {
width: 100%;
}
.dataTable .child .dtr-data {
float: right;
}
</style>
@endpush
@endonce
@endif

0 comments on commit fbb7064

Please sign in to comment.