瀏覽代碼

lightbox title line break

tags/1.0.3
Alej 3 年之前
父節點
當前提交
eab1a053f3
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 1
    1
      plugins/cia-endpoints/includes/reformat-blocks.php
  2. 3
    2
      vue-theme/src/sss/_lightbox.sss

+ 1
- 1
plugins/cia-endpoints/includes/reformat-blocks.php 查看文件

@@ -40,7 +40,7 @@
40 40
                 $id = end($class_pieces);
41 41
             }
42 42
             // Format for lightbox wants an object
43
-            $title = wp_get_attachment_caption($id) . '\n' . get_post($id)->post_content;
43
+            $title = get_the_title($id) . "\n \n" . get_post($id)->post_content;
44 44
             $parse_images[$id] = [
45 45
                 'src' => $image->getAttribute('src'),
46 46
                 'alt' => $image->getAttribute('alt'),

+ 3
- 2
vue-theme/src/sss/_lightbox.sss 查看文件

@@ -1,11 +1,11 @@
1 1
 @import './variables.sss'
2 2
 @import './theme.sss'
3 3
 
4
-.vel-fade
4
+/* .vel-fade
5 5
     &-enter-active, &-active
6 6
         transition: all 0.3s ease
7 7
     &-enter-from, &-leave-to
8
-        opacity: 1
8
+        opacity: 1 */
9 9
 
10 10
 .vel-img
11 11
     &-swiper
@@ -111,6 +111,7 @@
111 111
     font-size: $ms-0
112 112
     max-width: 90%
113 113
     position: absolute
114
+    white-space: pre-line
114 115
 
115 116
 .vel-icon
116 117
     fill: currentColor

Loading…
取消
儲存