Skip to content

A local-first personal finance app

Remove double scrollbar as the screen is big enough (#1385)

Sean Tsai1d60635e3bb9
diff --git a/packages/desktop-client/src/components/FixedSizeList.js b/packages/desktop-client/src/components/FixedSizeList.js
index fa4a47cce7..62ad8b81e9 100644
--- a/packages/desktop-client/src/components/FixedSizeList.js
+++ b/packages/desktop-client/src/components/FixedSizeList.js
@@ -206,7 +206,7 @@ export default class FixedSizeList extends PureComponent {
style={{
height,
width,
- overflow: 'auto',
+ overflow: 'hidden auto',
...style,
}}
>
diff --git a/packages/desktop-client/src/style/styles.ts b/packages/desktop-client/src/style/styles.ts
index a902833396..3355656908 100644
--- a/packages/desktop-client/src/style/styles.ts
+++ b/packages/desktop-client/src/style/styles.ts
@@ -31,7 +31,9 @@ export const styles = {
},
page: {
flex: 1,
- minHeight: 700, // ensure we can scroll on small screens
+ '@media (max-height: 550px)': {
+ minHeight: 700, // ensure we can scroll on small screens
+ },
paddingTop: 8, // height of the titlebar
[`@media (min-width: ${tokens.breakpoint_small})`]: {
paddingTop: 36,
diff --git a/upcoming-release-notes/1385.md b/upcoming-release-notes/1385.md
new file mode 100644
index 0000000000..e1cd69909f
--- /dev/null
+++ b/upcoming-release-notes/1385.md
@@ -0,0 +1,5 @@
+---
+category: Bugfix
+authors: [aleetsaiya]
+---
+Remove double scrollbar while the viewport is big enough and remove the horizontal scrollbar under the transaction table.
\ No newline at end of file