Skip to content

Commit 920dc17

Browse files
trader-payneclaude
andcommitted
fix: Improve DataTable horizontal scrollbar visibility
- Add padding-bottom to results container to prevent scrollbar clipping - Increase horizontal scrollbar size from 1 to 2 for better visibility - Use overflow auto instead of scroll to show bars only when needed - Fix missing newline at end of file 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent fe5eec5 commit 920dc17

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/main.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,8 @@ class PgAdminTUI(App):
954954
#results-container {
955955
/* Height now controlled by ResizableVertical */
956956
padding: 0;
957-
padding-top: 1; /* Add space between splitter and Results title */
957+
padding-top: 1; /* Space between splitter and Results title */
958+
padding-bottom: 1; /* Reserve space so horizontal scrollbar isn't clipped */
958959
}
959960
960961
#textarea-container {
@@ -1007,11 +1008,13 @@ class PgAdminTUI(App):
10071008
DataTable {
10081009
height: 1fr;
10091010
width: 100%;
1010-
overflow-x: scroll !important;
1011-
overflow-y: scroll !important;
1012-
scrollbar-size: 1 1; /* Vertical: 1, Horizontal: 1 */
1011+
/* Use auto to show bars only when needed and avoid layout conflicts */
1012+
overflow-x: auto;
1013+
overflow-y: auto;
1014+
/* Give the horizontal bar an extra row to avoid terminal rounding/clipping */
1015+
scrollbar-size: 1 2; /* Vertical: 1, Horizontal: 2 */
10131016
scrollbar-size-vertical: 1;
1014-
scrollbar-size-horizontal: 1;
1017+
scrollbar-size-horizontal: 2;
10151018
scrollbar-gutter: stable;
10161019
scrollbar-background: $primary-darken-2;
10171020
scrollbar-background-hover: $primary-darken-1;
@@ -2085,4 +2088,4 @@ def main(debug, config):
20852088

20862089

20872090
if __name__ == "__main__":
2088-
main()
2091+
main()

0 commit comments

Comments
 (0)