From 0ecbcbd790d784e72f2e7c90fc6a417b79acd022 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kuty=C5=82a?= Date: Tue, 2 Mar 2021 11:54:48 +0100 Subject: [PATCH] 17414: Added padding to the last element MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła --- src/components/tree/virtual-tree.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/tree/virtual-tree.tsx b/src/components/tree/virtual-tree.tsx index 54938969..52867a83 100644 --- a/src/components/tree/virtual-tree.tsx +++ b/src/components/tree/virtual-tree.tsx @@ -24,12 +24,18 @@ type CssRules = 'list' | 'iconOpen' | 'toggableIcon' | 'checkbox' + | 'virtualFileTree' | 'virtualizedList'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ list: { padding: '3px 0px', }, + virtualFileTree: { + "&:last-child": { + paddingBottom: 20 + } + }, virtualizedList: { height: '200px', }, @@ -84,7 +90,7 @@ export const Row = (itemList: VirtualTreeItem[], render: any, treeProp const it = itemList[index]; const level = it.level || 0; const { toggleItemActive, disableRipple, currentItemUuid, useRadioButtons } = treeProps; - const { listItem, loader, toggableIconContainer, renderContainer } = classes; + const { listItem, loader, toggableIconContainer, renderContainer, virtualFileTree } = classes; const { levelIndentation = 20, itemRightPadding = 20 } = treeProps; const showSelection = typeof treeProps.showSelection === 'function' @@ -130,7 +136,7 @@ export const Row = (itemList: VirtualTreeItem[], render: any, treeProp : undefined; }; - return
+ return