Skip to content

Commit a8f9211

Browse files
paulijarnextcloud-command
authored andcommitted
fix(core): legacy app navigation snapper width on RTL
After ec9e283 there was still such a problem with the legacy app navigation snapper that its width was only 266 px on the RTL layout instead of the normal 300 px. The 266 px is the default width of Snap.js module. While the left side snapper width is configured with the property maxPosition, the right side snapper is configured by passing a negative value for the property minPosition. Signed-off-by: Pauli Järvinen <[email protected]> Signed-off-by: nextcloud-command <[email protected]>
1 parent 5b60bb2 commit a8f9211

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

core/src/init.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export const initCore = () => {
122122
element: document.getElementById('app-content'),
123123
disable: SNAPPER_CLOSE,
124124
maxPosition: 300, // $navigation-width
125+
minPosition: -300, // $navigation-width for RTL
125126
minDragDistance: 100,
126127
})
127128

dist/core-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)