Skip to content

Commit

Permalink
fix: scrolling in Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
aradzie committed Oct 15, 2024
1 parent 6d5d5cc commit 7697cb6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ module.exports = {
},
],
"no-invalid-position-at-import-rule": null,
"plugin/use-logical-properties-and-values": [true, { severity: "warning" }],
"plugin/use-logical-properties-and-values": [
true,
{
severity: "warning",
ignore: ["overflow-y", "overflow-x"],
},
],
"plugin/use-logical-units": [true, { severity: "warning" }],
"order/order": [
[
Expand Down Expand Up @@ -237,8 +243,8 @@ module.exports = {
"overflow",
"overflow-anchor",
"overflow-x",
"overflow-y",
"overflow-inline",
"overflow-y",
"overflow-block",
"overflow-clip-margin",
"scroll-behavior",
Expand Down
2 changes: 2 additions & 0 deletions packages/keybr-pages-server/lib/Shell.module.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
body {
overflow-x: auto; // For Chrome 129
overflow-inline: auto;
overflow-y: scroll; // For Chrome 129
overflow-block: scroll;
color: var(--text-color);
background-color: var(--background-color);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@

.scroll {
padding-inline-end: 1rem;
overflow-y: auto; // For Chrome 129
overflow-block: auto;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@

.scroll {
padding-inline-end: 1rem;
overflow-y: auto; // For Chrome 129
overflow-block: auto;
}

0 comments on commit 7697cb6

Please sign in to comment.