Skip to content

Commit 1165217

Browse files
committed
Avoid vertical scrolling caused by the footer even when the page content is short.
fixes #395
1 parent 8ed051f commit 1165217

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- Prevent form validation and give a helpful error message when an user tries to submit a form with a file upload field that is above the maximum file size.
1313
- ![file upload too large](https://github.com/lovasoa/SQLpage/assets/552629/1c684d33-49bd-4e49-9ee0-ed3f0d454ced)
1414
- Fix a bug in [`sqlpage.read_file_as_data_url`](https://sql.ophir.dev/functions.sql?function=read_file_as_data_url#function) where it would truncate the mime subtype of the file. This would cause the browser to refuse to display SVG files, for instance.
15+
- Avoid vertical scrolling caused by the footer even when the page content is short.
1516

1617
## 0.23.0 (2024-06-09)
1718

sqlpage/sqlpage.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,16 @@ td > p {
3333
}
3434

3535
/* orchidjs/tom-select#712 */
36-
.ts-wrapper.multi .ts-control>div.active {
36+
.ts-wrapper.multi .ts-control > div.active {
3737
border: 1px solid transparent !important;
3838
}
3939

4040
:root {
4141
/* Workaround for https://github.com/tabler/tabler/issues/1879 */
4242
--tblr-text-secondary-rgb: var(--tblr-secondary-rgb);
43-
}
43+
}
44+
45+
.page {
46+
/* Leave space for the footer */
47+
min-height: calc(100% - 3rem);
48+
}

0 commit comments

Comments
 (0)