diff options
author | 2022-04-30 14:35:02 +0200 | |
---|---|---|
committer | 2022-04-30 12:35:02 +0000 | |
commit | b8345910f2829d6a1db74dcca22d9ac79716b6e1 (patch) | |
tree | 03ce9b7c6fb7c203d2fab3c63fba2dc3dd886582 | |
parent | docs: add SpecialAro as a contributor for code (#66) [skip ci] (diff) | |
download | ferdium-app-b8345910f2829d6a1db74dcca22d9ac79716b6e1.tar.gz ferdium-app-b8345910f2829d6a1db74dcca22d9ac79716b6e1.tar.zst ferdium-app-b8345910f2829d6a1db74dcca22d9ac79716b6e1.zip |
feat: add CSS scroll snap in split view mode (#64)
-rw-r--r-- | src/styles/layout.scss | 1 | ||||
-rw-r--r-- | src/styles/services.scss | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/styles/layout.scss b/src/styles/layout.scss index 8454814b0..359df3f35 100644 --- a/src/styles/layout.scss +++ b/src/styles/layout.scss | |||
@@ -95,6 +95,7 @@ body.win32:not(.isFullScreen) .app .app__content { | |||
95 | 95 | ||
96 | .mode__split .app .app__service { | 96 | .mode__split .app .app__service { |
97 | overflow-x: auto; | 97 | overflow-x: auto; |
98 | scroll-snap-type: x proximity; | ||
98 | } | 99 | } |
99 | 100 | ||
100 | .app { | 101 | .app { |
diff --git a/src/styles/services.scss b/src/styles/services.scss index d8f8b9327..359a41ab0 100644 --- a/src/styles/services.scss +++ b/src/styles/services.scss | |||
@@ -26,6 +26,7 @@ | |||
26 | .services__webview { | 26 | .services__webview { |
27 | position: relative; | 27 | position: relative; |
28 | flex: 1 0 33.3333%; | 28 | flex: 1 0 33.3333%; |
29 | scroll-snap-align: start; | ||
29 | } | 30 | } |
30 | } | 31 | } |
31 | 32 | ||