ソースを参照

[minor][fix] Image view gallery (#4388)

version-14
Faris Ansari 7年前
committed by GitHub
コミット
dd5bd8ef11
2個のファイルの変更4行の追加3行の削除
  1. +4
    -1
      frappe/public/js/frappe/views/image/image_view.js
  2. +0
    -2
      frappe/public/less/list.less

+ 4
- 1
frappe/public/js/frappe/views/image/image_view.js ファイルの表示

@@ -202,7 +202,10 @@ frappe.views.GalleryView = Class.extend({

this.pswp.listen('afterChange', function() {
const images = images_map[this.currItem.name];
if (!images || images.length === 1) return;
if (!images || images.length === 1) {
$more_items.html('');
return;
}

hide_more_items_after_2s();
const html = images.map(img_html).join("");


+ 0
- 2
frappe/public/less/list.less ファイルの表示

@@ -492,8 +492,6 @@
bottom: 12px;
left: 50%;
transform: translateX(-50%);

background-color: @bg
}

.pswp__more-item {


読み込み中…
キャンセル
保存