Skip to content

Commit

Permalink
add item responsive control
Browse files Browse the repository at this point in the history
  • Loading branch information
brkcvn committed Oct 11, 2022
1 parent e8693a3 commit 27e5252
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 12 deletions.
22 changes: 17 additions & 5 deletions public/css/app.css
Expand Up @@ -47241,13 +47241,25 @@ html[dir="rtl"] .lines-radius-border thead td:last-child {

@media only screen and (max-width: 480px) {
.small-table-width {
width: 450px;
width: 550px;
}

.small-col {
width: auto !important;
}

.description-col {
width: 180px !important
}

.amount-col {
width: 70px !important;
}

.name-col {
width: 6rem !important
}

.information-content {
-webkit-transform: unset !important;
transform: unset !important;
Expand Down Expand Up @@ -50074,6 +50086,10 @@ body{
width: 66.666667%;
}

.lg\:w-auto{
width: auto;
}

.lg\:w-1\/4{
width: 25%;
}
Expand All @@ -50094,10 +50110,6 @@ body{
width: 24rem;
}

.lg\:w-auto{
width: auto;
}

.lg\:w-2\/4{
width: 50%;
}
Expand Down
14 changes: 13 additions & 1 deletion resources/assets/sass/app.css
Expand Up @@ -529,13 +529,25 @@ html[dir="rtl"] .lines-radius-border thead td:last-child {

@media only screen and (max-width: 480px) {
.small-table-width {
width: 450px;
width: 550px;
}

.small-col {
width: auto !important;
}

.description-col {
width: 180px !important
}

.amount-col {
width: 70px !important;
}

.name-col {
width: 6rem !important
}

.information-content {
transform: unset !important;
margin-top: 70px !important;
Expand Down
6 changes: 3 additions & 3 deletions resources/views/components/documents/form/items.blade.php
Expand Up @@ -4,11 +4,11 @@
<table class="small-table-width" id="items">
<colgroup>
<col class="small-col" style="width: 24px;">
<col class="small-col" style="width: 20%;">
<col class="small-col" style="width: 30%;">
<col class="small-col name-col" style="width: 20%;">
<col class="small-col description-col" style="width: 30%;">
<col class="small-col" style="width: 12%;">
<col class="small-col" style="width: 15%;">
<col class="small-col" style="width: 20%;">
<col class="small-col amount-col" style="width: 20%;">
<col class="small-col" style="width: 24px;">
</colgroup>

Expand Down
8 changes: 5 additions & 3 deletions resources/views/components/documents/form/line-item.blade.php
Expand Up @@ -8,10 +8,10 @@
<colgroup>
<col class="small-col" style="width: 24px;">
<col class="small-col" style="width: 20%;">
<col class="small-col" style="width: 30%;">
<col class="small-col description-col" style="width: 30%;">
<col class="small-col" style="width: 12%;">
<col class="small-col" style="width: 15%;">
<col class="small-col" style="width: 20%;">
<col class="small-col amount-col" style="width: 20%;">
<col class="small-col" style="width: 24px;">
</colgroup>

Expand All @@ -30,7 +30,9 @@

<td class="px-3 py-3 ltr:pl-2 rtl:pr-2 ltr:text-left rtl:text-right align-middle border-b-0 name">
@if (! $hideItemName)
<span class="flex items-center text-sm" tabindex="0" v-html="row.name" v-if="row.item_id"></span>
<span class="flex items-center text-sm" tabindex="0" v-if="row.item_id">
<div v-html="row.name" class="w-20 lg:w-auto truncate"></div>
</span>

<div v-else>
@stack('name_input_start')
Expand Down

0 comments on commit 27e5252

Please sign in to comment.