Skip to content

Commit c41c8e9

Browse files
committed
Add conditional padding on Seperator Child depending on if component isOver it. Add transition.
1 parent 2653d0c commit c41c8e9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/src/components/main/SeparatorChild.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,9 @@ function SeparatorChild({
144144
// priority order is 1) style directly set for this child (style), 2) style of the referenced HTML element, and 3) default styling
145145
const defaultNestableStyle = { ...globalDefaultStyle };
146146
const separatorStyle = {
147-
padding: '2px 10px',
148-
margin: '1px 10px'
147+
padding: isOver ? '40px 10px' : '2px 10px',
148+
margin: '1px 10px',
149+
transition: 'padding 1s ease-out'
149150
};
150151

151152
defaultNestableStyle['backgroundColor'] = isOver

0 commit comments

Comments
 (0)