Make controls scrollable when sticky navbar

This commit is contained in:
Isaac Connor
2023-01-16 16:38:23 -05:00
parent 06be7a6633
commit e6b897014c
2 changed files with 8 additions and 2 deletions

View File

@@ -7,3 +7,7 @@
text-align: center;
}
#controls {
height: 100%;
overflow-y: auto;
}

View File

@@ -28,9 +28,9 @@ $controls = dbFetchAll('SELECT * FROM Controls ORDER BY Name');
$focusWindow = true;
xhtmlHeaders(__FILE__, translate('ControlCaps'));
getBodyTopHTML();
echo getNavBarHTML();
?>
<body>
<?php echo getNavBarHTML() ?>
<div id="page">
<!-- Toolbar button placement and styling handled by bootstrap-tables -->
@@ -43,6 +43,7 @@ xhtmlHeaders(__FILE__, translate('ControlCaps'));
</div>
<div id="content" class="table-responsive-sm">
<div id="controls">
<table
id="controlTable"
data-locale="<?php echo i18n() ?>"
@@ -95,6 +96,7 @@ foreach( $controls as $control ) {
?>
</tbody>
</table>
</div><!--controls-->
</div>
</div>
<?php xhtmlFooter() ?>