Move component

This commit is contained in:
Thomas Trompette 2024-12-20 18:21:19 +01:00
parent 26e853abf2
commit 9a5a87e4c6
3 changed files with 11 additions and 10 deletions

View File

@ -15,13 +15,10 @@ const StyledEditableTitleContainer = styled.div`
const StyledEditableTitlePrefix = styled.div`
color: ${({ theme }) => theme.font.color.tertiary};
line-height: 24px;
padding: 3px 0;
`;
const StyledEditableTitleSeparator = styled.div`
color: ${({ theme }) => theme.font.color.tertiary};
line-height: 24px;
padding: 3px;
display: flex;
flex-direction: row;
padding: ${({ theme }) => theme.spacing(0.75)};
gap: ${({ theme }) => theme.spacing(1)};
`;
export const RecordEditableName = ({
@ -78,8 +75,8 @@ export const RecordEditableName = ({
<StyledEditableTitleContainer>
<StyledEditableTitlePrefix>
{capitalize(objectLabelPlural)}
<span>{' / '}</span>
</StyledEditableTitlePrefix>
<StyledEditableTitleSeparator>{' / '}</StyledEditableTitleSeparator>
{isRenaming ? (
<NavigationDrawerInput
value={recordName}

View File

@ -77,7 +77,11 @@ const StyledItem = styled('button', {
font-family: ${({ theme }) => theme.font.family};
font-size: ${({ theme }) => theme.font.size.md};
padding: ${({ theme }) => theme.spacing(1)};
padding-bottom: ${({ theme }) => theme.spacing(1)};
padding-left: ${({ theme }) => theme.spacing(1)};
padding-right: ${({ theme }) => theme.spacing(0.5)};
padding-top: ${({ theme }) => theme.spacing(1)};
margin-top: ${({ indentationLevel }) =>
indentationLevel === 2 ? '2px' : '0'};

View File

@ -1,9 +1,9 @@
import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular';
import { RecordEditableName } from '@/object-record/components/RecordEditableName';
import { useRecordShowContainerTabs } from '@/object-record/record-show/hooks/useRecordShowContainerTabs';
import { useRecordShowPage } from '@/object-record/record-show/hooks/useRecordShowPage';
import { useRecordShowPagePagination } from '@/object-record/record-show/hooks/useRecordShowPagePagination';
import { PageHeader } from '@/ui/layout/page/components/PageHeader';
import { RecordEditableName } from '~/pages/object-record/RecordEditableName';
export const RecordShowPageHeader = ({
objectNameSingular,