Skip to content

Commit aa6007e

Browse files
committed
fix: misc styling improvements
1 parent 4d0b330 commit aa6007e

5 files changed

Lines changed: 6 additions & 4 deletions

File tree

testgen/ui/components/frontend/css/shared.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ body {
149149
border: var(--button-stroked-border);
150150
border-radius: 8px;
151151
padding: 16px;
152+
box-sizing: border-box;
152153
}
153154

154155
.table-row {

testgen/ui/components/frontend/js/pages/project_dashboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const TableGroupCard = (/** @type TableGroupSummary */ tableGroup) => {
157157
),
158158
span(
159159
{ class: 'text-caption mt-1 mb-3 tg-overview--subtitle' },
160-
`${tableGroup.latest_profile_table_ct} tables | ${tableGroup.latest_profile_column_ct} columns`,
160+
`${tableGroup.latest_profile_table_ct ?? 0} tables | ${tableGroup.latest_profile_column_ct ?? 0} columns`,
161161
),
162162
TableGroupTestSuiteSummary(tableGroup.test_suites),
163163
),

testgen/ui/components/frontend/js/pages/schedule_list.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import van from '../van.min.js';
2020
import { Button } from '../components/button.js';
2121
import { Streamlit } from '../streamlit.js';
22-
import { emitEvent, getValue, resizeFrameHeightToElement } from '../utils.js';
22+
import { emitEvent, getValue, resizeFrameHeightToElement, resizeFrameHeightOnDOMChange } from '../utils.js';
2323
import { withTooltip } from '../components/tooltip.js';
2424

2525

@@ -42,6 +42,7 @@ const ScheduleList = (/** @type Properties */ props) => {
4242

4343
const tableId = 'profiling-schedules-table';
4444
resizeFrameHeightToElement(tableId);
45+
resizeFrameHeightOnDOMChange(tableId);
4546

4647
return div(
4748
{ class: 'table', id: tableId },

testgen/ui/components/frontend/js/pages/table_group_list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ const Toolbar = (permissions, connections, selectedConnection) => {
222222
})) ?? [],
223223
onChange: (value) => emitEvent('ConnectionSelected', { payload: value }),
224224
})
225-
: undefined,
225+
: span(''),
226226
div(
227227
{ class: 'flex-row fx-gap-4' },
228228
Button({

testgen/ui/views/profiling_results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
import pandas as pd
77
import streamlit as st
88

9-
from testgen.common.models import with_database_session
109
import testgen.ui.queries.profiling_queries as profiling_queries
1110
import testgen.ui.services.database_service as db
1211
import testgen.ui.services.form_service as fm
1312
from testgen.common import date_service
13+
from testgen.common.models import with_database_session
1414
from testgen.ui.components import widgets as testgen
1515
from testgen.ui.components.widgets.download_dialog import (
1616
FILE_DATA_TYPE,

0 commit comments

Comments
 (0)