Browse Source

[cdb] Set max size to image preview

Clément Espeute 2 weeks ago
parent
commit
8b2454cb8c
2 changed files with 10 additions and 0 deletions
  1. 4 0
      bin/cdb.css
  2. 6 0
      bin/cdb.less

+ 4 - 0
bin/cdb.css

@@ -532,6 +532,7 @@
   border: 1px solid black;
   padding: 5px;
   z-index: 810;
+  max-width: 500px;
 }
 .cdb .cdb-sheet td.t_file .preview .previewContent .label {
   text-align: center;
@@ -539,6 +540,9 @@
   background-color: #444;
   font-family: monospace;
 }
+.cdb .cdb-sheet td.t_file .preview .previewContent > img {
+  width: 100%;
+}
 .cdb .cdb-sheet td.t_file .inlineImage > img {
   max-height: 100px;
 }

+ 6 - 0
bin/cdb.less

@@ -605,6 +605,12 @@
 					border : 1px solid black;
 					padding : 5px;
 					z-index : @cdb-preview-layer;
+
+					max-width: 500px;
+
+					>img {
+						width: 100%;
+					}
 				}
 			}
 			.inlineImage {