style(fe): enforce 100% viewport-fit zero-scroll dynamic height calculation for ModelOperationTable AG Grid
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 85 KiB |
@@ -32,7 +32,7 @@ const columns: UiGridColumn[] = [
|
|||||||
<KsDataGrid
|
<KsDataGrid
|
||||||
:rows="props.operations"
|
:rows="props.operations"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
height="240px"
|
height="100%"
|
||||||
:show-row-number="true"
|
:show-row-number="true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -43,12 +43,14 @@ const columns: UiGridColumn[] = [
|
|||||||
.operation-plan-panel {
|
.operation-plan-panel {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
flex: 1;
|
||||||
|
min-height: 0;
|
||||||
gap: var(--ks-space-3);
|
gap: var(--ks-space-3);
|
||||||
padding: var(--ks-space-3);
|
padding: var(--ks-space-3);
|
||||||
background: var(--ks-color-surface);
|
background: var(--ks-color-surface);
|
||||||
border: 1px solid var(--ks-color-border);
|
border: 1px solid var(--ks-color-border);
|
||||||
border-radius: var(--ks-radius-sm);
|
border-radius: var(--ks-radius-sm);
|
||||||
margin-top: var(--ks-space-3);
|
margin-top: var(--ks-space-2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-title {
|
.panel-title {
|
||||||
@@ -60,7 +62,8 @@ const columns: UiGridColumn[] = [
|
|||||||
|
|
||||||
.grid-wrapper {
|
.grid-wrapper {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 260px;
|
flex: 1;
|
||||||
|
min-height: 220px;
|
||||||
border: 1px solid var(--ks-color-border);
|
border: 1px solid var(--ks-color-border);
|
||||||
border-radius: var(--ks-radius-sm);
|
border-radius: var(--ks-radius-sm);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
@@ -38,3 +38,13 @@ const handleRetry = () => {
|
|||||||
</div>
|
</div>
|
||||||
</VersionGovernancePage>
|
</VersionGovernancePage>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
flex: 1;
|
||||||
|
height: 100%;
|
||||||
|
min-height: 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user