2
0
mirror of https://github.com/frappe/books.git synced 2024-11-08 23:00:56 +00:00

fix(ui): table overflowing

This commit is contained in:
akshayitzme 2023-08-25 17:35:48 +05:30 committed by akshayitzme
parent 3bbf5294c9
commit 65c472500b
2 changed files with 52 additions and 48 deletions

View File

@ -18,34 +18,36 @@
</div>
</Row>
<Row
v-if="items"
v-for="row in items"
:ratio="ratio"
:border="true"
class="
border-b border-l border-r
flex
group
h-row-mid
hover:bg-gray-25
items-center
justify-center
px-2
w-full
"
@click="handleChange(row as POSItem)"
>
<FormControl
v-for="df in tableFields"
:key="df.fieldname"
size="large"
class=""
:df="df"
:value="row[df.fieldname]"
:readOnly="true"
/>
</Row>
<div class="overflow-y-auto" style="height: 72.5vh">
<Row
v-if="items"
v-for="row in items"
:ratio="ratio"
:border="true"
class="
border-b border-l border-r
flex
group
h-row-mid
hover:bg-gray-25
items-center
justify-center
px-2
w-full
"
@click="handleChange(row as POSItem)"
>
<FormControl
v-for="df in tableFields"
:key="df.fieldname"
size="large"
class=""
:df="df"
:value="row[df.fieldname]"
:readOnly="true"
/>
</Row>
</div>
</template>
<script lang="ts">

View File

@ -19,26 +19,28 @@
</div>
</Row>
<Row
v-for="row in sinvDoc.items"
:ratio="ratio"
class="
border
w-full
px-2
py-2
group
flex
items-center
justify-center
hover:bg-gray-25
"
>
<SelectedItemRow
:row="(row as SalesInvoiceItem)"
@removeItem="removeItem"
/>
</Row>
<div class="overflow-y-auto" style="height: 50vh">
<Row
v-for="row in sinvDoc.items"
:ratio="ratio"
class="
border
w-full
px-2
py-2
group
flex
items-center
justify-center
hover:bg-gray-25
"
>
<SelectedItemRow
:row="(row as SalesInvoiceItem)"
@removeItem="removeItem"
/>
</Row>
</div>
</template>
<script lang="ts">
import Row from '../Row.vue';