-
Notifications
You must be signed in to change notification settings - Fork 224
feat: restore slot handling based on element contents #548
Conversation
Really cool! Thanks for restoring that feature! I just came across three thingies:
That would be great! |
props.element.getNameEditable(); | ||
props.element.getHighlighted(); | ||
props.element.acceptsChildren(); | ||
// props.element.getSelected(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need that code here?
61c6204
to
c411db0
Compare
display: flex; | ||
align-items: center; | ||
color: ${Color.Grey20}; | ||
position: relative; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a duplicate to line 60
position: relative; | ||
display: flex; | ||
align-items: center; | ||
color: ${Color.Grey20}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in line 68 this is overridden
box-sizing: border-box; | ||
margin-left: ${getSpace(SpaceSize.XXL) - 3}px; | ||
overflow: hidden; | ||
padding: ${getSpace(SpaceSize.XS)}px ${getSpace(SpaceSize.XXS)}px ${getSpace(SpaceSize.XS)}px |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could be written shorter as padding: ${getSpace(SpaceSize.XS)}px ${getSpace(SpaceSize.XXS)}px;
src/components/element/element.tsx
Outdated
position: relative; | ||
display: flex; | ||
align-items: center; | ||
color: ${Color.Grey20}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be removed. It is already overridden in line 96
@lkuechler Good spots – I removed the duplicates! |
# Conflicts: # src/components/element/demo.tsx # src/components/element/index.tsx # src/components/index.ts # src/container/element-list/element-container.tsx
@tilmx: Could you improve the styling of
components/element-slot
? Thanks!