Fixing issue with table expanding too far with large response datasets.

This commit is contained in:
mike12345567 2021-12-09 13:23:06 +00:00
parent 4cd28fa7c4
commit da3df17699
1 changed files with 14 additions and 9 deletions

View File

@ -273,15 +273,17 @@
<KeyValueBuilder object={response.extra?.headers} readOnly /> <KeyValueBuilder object={response.extra?.headers} readOnly />
</Tab> </Tab>
<Tab title="Preview"> <Tab title="Preview">
{#if response} <div class="table">
<Table {#if response}
schema={response?.schema} <Table
data={response?.rows} schema={response?.schema}
allowEditColumns={false} data={response?.rows}
allowEditRows={false} allowEditColumns={false}
allowSelectRows={false} allowEditRows={false}
/> allowSelectRows={false}
{/if} />
{/if}
</div>
</Tab> </Tab>
<div class="stats"> <div class="stats">
<Label size="L"> <Label size="L">
@ -316,6 +318,9 @@
margin: 0 auto; margin: 0 auto;
height: 100%; height: 100%;
} }
.table {
width: 960px;
}
.url-block { .url-block {
display: flex; display: flex;
gap: var(--spacing-s); gap: var(--spacing-s);