]> git.ardis.lu - css-for-line-clamp-ellipsis/commitdiff
Restrict min and max resizing
authorArdis Lu <ardisglu@gmail.com>
Mon, 10 Apr 2023 03:20:06 +0000 (20:20 -0700)
committerArdis Lu <ardisglu@gmail.com>
Mon, 10 Apr 2023 03:20:06 +0000 (20:20 -0700)
index.html

index a287e0641b357461e946aaeae8305708000d2478..9604fa158cba9826826440d159f225da847da2d5 100644 (file)
@@ -85,6 +85,8 @@
 
     .width-resizable {
       resize: horizontal;
+      min-inline-size: 50px;
+      max-inline-size: min(1080px, 100% - 16px);
     }
 
     .dynamic-line-clamp {
@@ -96,6 +98,8 @@
 
     .height-resizable {
       resize: vertical;
+      min-block-size: 21px;
+      max-block-size: 294px;
     }
 
     .width-resizable,
This page took 0.038443 seconds and 4 git commands to generate.