Browse Source

fix: images in table view

Tienson Qin 5 months ago
parent
commit
1aa21ecd8a
2 changed files with 4 additions and 0 deletions
  1. 1 0
      src/main/frontend/components/block.cljs
  2. 3 0
      src/main/frontend/components/table.css

+ 1 - 0
src/main/frontend/components/block.cljs

@@ -421,6 +421,7 @@
                                              :local? local?
                                              :full-text full-text})]
     (if (or (:disable-resize? config)
+            (:table-view? config)
             (not resizable?))
       asset-container-cp
       [:div.ls-resize-image.rounded-md

+ 3 - 0
src/main/frontend/components/table.css

@@ -81,6 +81,9 @@
     @apply cursor-pointer transition-colors hover:bg-muted/50 text-left align-middle font-medium text-muted-foreground border-r;
   }
 
+  .ls-table-cell {
+    @apply overflow-hidden;
+  }
   .ls-table-footer {
     @apply absolute left-0 bottom-[8px] w-full;
   }