gpt-3.5-turbo-0125· OpenAI
WildChat-4.8M (AI2)
modify this styled components code with adding a new selector, within > div selector I…
- User
modify this styled components code with adding a new selector, within > div selector I need to find a tbody component and check if it has tr within it. if tr is within it then apply nothing else but if it is empty then I need to add styles border: 1px solid ${({ theme }) => theme.transparent[10]}; and border-radius: 12px;
export const SWrapper = styled.div` position: relative;
padding: 0 20px 20px; overflow: hidden; ${SHideRightPadding}
div { height: 100%; max-height: 100%; } `;
- Assistant
export const SWrapper = styled.div` position: relative;
padding: 0 20px 20px; overflow: hidden; ${SHideRightPadding}
div { height: 100%; max-height: 100%;
tbody { tr:empty { border: 1px solid ${({ theme }) => theme.transparent[10]}; border-radius: 12px; } }} `;