Skip to content

Commit 54dd82f

Browse files
committed
tools: localhost: limit table width to screen
Limit the table width to the screen width. This means the scroll bar is present on the table, not the whole window, and results in the pagination options always being visible. Signed-off-by: Jordan Yates <jordan@embeint.com>
1 parent afb9809 commit 54dd82f

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/infuse_iot/tools/localhost/index.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
#app-show {
3434
vertical-align: top;
3535
}
36+
37+
#data-table {
38+
width: 100%;
39+
};
3640
</style>
3741

3842
<body>
@@ -73,10 +77,10 @@ <h1>Infuse-IoT TDF Viewer</h1>
7377
// Initialize the Tabulator table
7478
const dataTable = new Tabulator("#data-table", {
7579
layout: "fitDataTable",
76-
pagination:"local",
77-
paginationSize:25,
78-
paginationSizeSelector:[10, 25, 50, 100],
79-
paginationCounter:"rows",
80+
pagination: "local",
81+
paginationSize: 25,
82+
paginationSizeSelector: [10, 25, 50, 100],
83+
paginationCounter: "rows",
8084
});
8185
const shownTdfTable = new Tabulator("#tdf-show", {
8286
layout: "fitDataTable",

0 commit comments

Comments
 (0)