ivanye
July 27, 2020, 5:38am
1
Where i can change the Cell`s Width(and the preview area) Adjustable or set an value.
The product`s name is very long, and have some variations in the end, it is hard to select.
hillel
July 27, 2020, 6:12am
2
I believe these are the relevant code locations
<table class="table invoice-table {{ $isTasks ? 'task-table' : 'product-table' }}">
<thead {!! $isTasks ? 'style="display:none;" data-bind="visible: $root.hasTasks"' : ($invoice->has_tasks || ! empty($tasks) ? 'data-bind="visible: $root.hasItems"' : '') !!}>
@if ($isTasks)
<tr data-bind="visible: $root.hasItems">
<td style="20px" colspan="20"></td>
</tr>
@endif
<tr>
<th style="min-width:32px;" class="hide-border"></th>
<th style="min-width:120px;width:25%">{{ $invoiceLabels[$isTasks ? 'service' : 'item'] }}</th>
<th style="width:100%">{{ $invoiceLabels['description'] }}</th>
@if ($account->customLabel('product1'))
<th style="min-width:120px">{{ $account->present()->customLabel('product1') }}</th>
@endif
@if ($account->customLabel('product2'))
<th style="min-width:120px">{{ $account->present()->customLabel('product2') }}</th>
@endif
<th style="min-width:120px">{{ $invoiceLabels[$isTasks ? 'rate' : 'unit_cost'] }}</th>
<th style="min-width:120px;display:{{ $account->hasInvoiceField($isTasks ? 'task' : 'product', $isTasks ? 'product.hours' : 'product.quantity') ? 'table-cell' : 'none' }}">{{ $invoiceLabels[$isTasks ? 'hours' : 'quantity'] }}</th>
<th style="min-width:120px;display:{{ $account->hasInvoiceField($isTasks ? 'task' : 'product', 'product.discount') ? 'table-cell' : 'none' }}">{{ $invoiceLabels['discount'] }}</th>
left: 10px;
top: 11px;
left: -6px;
}
.navbar-brand {
padding-top:20px;
}
.dropdown-menu {
left: 0;
top: 100%;
min-width: 160px;
padding: 5px 0;
font-size: 14px;
border: none;
border-radius: 3px;
-webkit-box-shadow: 0 6px 12px rgba(0,0,0,.05);
box-shadow: 0 6px 12px rgba(0,0,0,.05);
background-clip: padding-box;
}
ivanye
July 27, 2020, 8:54am
3
Thanks hillel,
It works for cell.
But for PREVIEW area, it is not .dropdown-menu in resources/assets/css/style.ss#L485
I finally found it is #scrollable-dropdown-menu .tt-menu in resources/view/invoices/edit.blade.php#L17
1 Like