tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-08-07 17:21:55 +03:00
parent 087254328c
commit 5a52210b18
2 changed files with 6 additions and 3 deletions

View File

@ -93,7 +93,7 @@ var restoreScroll = function(){
- actions:
- "from selection"
- Gallery: drag-n-drop
- <s>drop files/images</s>
- <s>drop files/images</s> -- add loading indicator
- drag to sort
- <s>Gallery: remove image</s>
- UI: mark images for deletion + delete marked

View File

@ -19,11 +19,14 @@
var PATCH_MARGIN = 2
var patchFlexRows =
function(elems, prevent_row_expansion=false, last_row_resize=1.5){
function(elems,
prevent_row_expansion=false,
last_row_resize=1.5,
patch_margin=PATCH_MARGIN){
if(elems.length == 0){
return }
// NOTE: -1 here is to compensate for rounding errors...
var W = elems[0].parentElement.clientWidth - PATCH_MARGIN
var W = elems[0].parentElement.clientWidth - patch_margin
var w = 0
var h
var row = []