Skip to content

Commit

Permalink
Hide tx overflow and allow line-wrap
Browse files Browse the repository at this point in the history
Move tx data text wrap up a level

Adjustment to tx payload height

Remove junk code
  • Loading branch information
kylanhurt committed Oct 18, 2023
1 parent 45ded0b commit 267760f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/transaction/DataFormat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default defineComponent({
const transferData = computed(() => actionData.value as TransferData);
const clientHeight = computed(() => dataBox.value?.clientHeight ?? 0);
let currentData = ref<string | unknown>(null);
const maxHeight = 98; // the maximum row height
const maxHeight = 130; // the maximum row height
const switchHeight = 20;
const maxHeightStyle = `calc(${maxHeight}px - ${switchHeight}px)`;
Expand Down Expand Up @@ -108,10 +108,10 @@ export default defineComponent({

<template>
<div
class="relative-position"
class="relative-position overflow-hidden"
:class="{'div-compressed': !showOverflow}"
>
<div v-if="actionName === 'transfer'" ref="dataBox" class="row">
<div v-if="actionName === 'transfer'" ref="dataBox" class="row transfer-data">
<div class="col-12">
<span class="text-bold">
<AccountFormat :account="transferData.from" type="account"/></span><span class="text-bold">&nbsp;&nbsp;
Expand Down Expand Up @@ -157,6 +157,9 @@ export default defineComponent({
gap: 5px
word-break: break-all
.transfer-data
text-wrap: wrap
.div-compressed
max-height: v-bind(maxHeightStyle)
Expand Down

0 comments on commit 267760f

Please sign in to comment.