File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 35
35
36
36
### Features
37
37
38
+ - pat gallery: Import styles for photoswipe.
38
39
- pat carousel: Import styles for slick carousel.
39
40
- pat auto suggest: Import styles for select2.
40
41
- pat-tooltip: Import styles for tippy.
Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ export default Base.extend({
22
22
origBodyOverflow : "auto" ,
23
23
24
24
async init ( $el , opts ) {
25
+ if ( window . __patternslib_import_styles ) {
26
+ import ( "photoswipe/dist/photoswipe.css" ) ;
27
+ import ( "photoswipe/dist/default-skin/default-skin.css" ) ;
28
+ }
25
29
const PhotoSwipe = ( await import ( "photoswipe" ) ) . default ;
26
30
const PhotoSwipeUI = ( await import ( "photoswipe/dist/photoswipe-ui-default" ) ) . default ; // prettier-ignore
27
31
You can’t perform that action at this time.
0 commit comments