Skip to content

Commit

Permalink
gallery qr: allow to place in center
Browse files Browse the repository at this point in the history
Change-Id: Ib6e55de31688b2324b91c9d68db2d4f2d95a93f9
  • Loading branch information
andi34 committed Aug 28, 2024
1 parent 7c5e783 commit 843a974
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions assets/sass/vendor/_photoswipe.scss
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,14 @@
bottom: 4rem;
}
}
&.center {
left: 50%;
translate: -50% 0;
&--bottom {
bottom: 4rem;
}
&--top {
top: 4rem;
}
}
}
2 changes: 2 additions & 0 deletions lib/configsetup.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1825,6 +1825,8 @@
'right right--top' => 'top right',
'right right--center' => 'right center',
'right right--bottom' => 'right bottom',
'center center--bottom' => 'bottom center',
'center center--top' => 'top center',
],
'value' => $config['qr']['pswp'],
],
Expand Down
2 changes: 2 additions & 0 deletions src/Configuration/PhotoboothConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ protected function addQr(): NodeDefinition
'right right--top',
'right right--center',
'right right--bottom',
'center center--bottom',
'center center--top',
])
->defaultValue('hidden')
->end()
Expand Down

0 comments on commit 843a974

Please sign in to comment.