Skip to content

Commit

Permalink
last?
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdarkle committed Sep 10, 2024
1 parent fe18665 commit 38e77ee
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js/dist/forum.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dist/forum.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"build": "npm run build:css && webpack --mode production",
"format": "prettier --write src",
"format-check": "prettier --check src",
"build:css": "cp ./node_modules/@fancyapps/ui/dist/fancybox/fancybox.css ../less/fancybox.css && cp ./node_modules/@fancyapps/ui/dist/carousel/carousel.css ../less/carousel.css"
"build:css": "cp ./node_modules/@fancyapps/ui/dist/fancybox/fancybox.css ../less/fancybox.css && cp ./node_modules/@fancyapps/ui/dist/carousel/carousel.css ../less/carousel.css && cp ./node_modules/@fancyapps/ui/dist/panzoom/panzoom.css ../less/panzoom.css"
}
}
7 changes: 6 additions & 1 deletion js/src/forum/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,18 @@ app.initializers.add('darkle/fancybox', () => {
Toolbar: {
display: {
left: ["infobar"],
middle: ["rotateCCW","rotateCW","flipX","flipY"],
middle: ["zoom", "rotateCCW", "rotateCW", "flipX", "flipY"],
right: ["slideshow", "fullscreen", "close"],
},
},
Images: {
initialSize: 'fit',
},
Panzoom: {
zoom: true,
pinchToZoom: true, // Allow pinch-to-zoom on touch devices
wheel: true, // Allow zooming with mouse wheel
},
on: {
"Carousel.ready Carousel.change": (fancybox) => {
const slide = fancybox.getSlide();
Expand Down
2 changes: 2 additions & 0 deletions less/forum.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@import (inline) "fancybox.css";
@import (inline) "carousel.css";
@import (inline) "panzoom.css";
@import (inline) "panzoom.controls.css";

.f-carousel__slide {
display: flex;
Expand Down
1 change: 1 addition & 0 deletions less/panzoom.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 38e77ee

Please sign in to comment.