martmull
2025-03-13 16:50:35 +01:00
committed by GitHub
parent 4f0fd0c9f3
commit b1322beac3
6 changed files with 12 additions and 8 deletions

View File

@ -83,7 +83,7 @@ const StyledClickableZone = styled.div`
justify-content: flex-end;
`;
const MotionIconChevronDown = motion(IconChevronDown);
const MotionIconChevronDown = motion.create(IconChevronDown);
type RecordDetailRelationRecordsListItemProps = {
isExpanded: boolean;

View File

@ -28,7 +28,7 @@ const StyledTable = styled.table`
table-layout: fixed;
width: 100%;
.footer-sticky tr:nth-last-child(2) td {
.footer-sticky tr:nth-last-of-type(2) td {
border-bottom-color: ${({ theme }) => theme.background.transparent};
}
`;

View File

@ -15,7 +15,7 @@ type RecordTableDraggableTrProps = {
children: ReactNode;
};
const StyledAbsoluteInViewContainer = styled.div`
const StyledAbsoluteInViewContainer = styled.td`
position: absolute;
top: 0;
left: 0;

View File

@ -43,6 +43,7 @@ const AnimatedIcon = ({
cx={12}
cy={12}
r="1"
initial={{ opacity: 0 }}
animate={{
scale: isCommandMenuOpened ? 0 : 1,
opacity: isCommandMenuOpened ? 0 : 1,
@ -55,7 +56,7 @@ const AnimatedIcon = ({
<motion.path
key={index}
d={path}
initial={{ pathLength: 0 }}
initial={{ pathLength: 0, opacity: 0 }}
animate={{
pathLength: isCommandMenuOpened ? 1 : 0,
opacity: isCommandMenuOpened ? 1 : 0,
@ -73,6 +74,7 @@ const AnimatedIcon = ({
cx="12"
cy="5"
r="1"
initial={{ opacity: 0 }}
animate={{
scale: isCommandMenuOpened ? 0 : 1,
opacity: isCommandMenuOpened ? 0 : 1,
@ -85,6 +87,7 @@ const AnimatedIcon = ({
cx="12"
cy="19"
r="1"
initial={{ opacity: 0 }}
animate={{
scale: isCommandMenuOpened ? 0 : 1,
opacity: isCommandMenuOpened ? 0 : 1,

View File

@ -20,7 +20,7 @@ const StyledButton = styled(motion.button)`
cursor: pointer;
`;
const MotionIconChevronDown = motion(IconChevronDown);
const MotionIconChevronDown = motion.create(IconChevronDown);
export const JsonArrow = ({
isOpen,

View File

@ -1,3 +1,4 @@
import React from 'react';
import styled from '@emotion/styled';
const StyledCommandTextContainer = styled.div`
@ -47,10 +48,10 @@ export const MenuItemCommandHotKeys = ({
{hotKeys && (
<StyledCommandTextContainer>
{hotKeys.map((hotKey, index) => (
<>
<StyledCommandKey key={index}>{hotKey}</StyledCommandKey>
<React.Fragment key={index}>
<StyledCommandKey>{hotKey}</StyledCommandKey>
{index < hotKeys.length - 1 && joinLabel}
</>
</React.Fragment>
))}
</StyledCommandTextContainer>
)}