Remove Right-Edge Gap in Table Cell Display (#5992)
fixes #5941  --------- Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
committed by
GitHub
parent
e8f386ce43
commit
2e4ba9ca7b
@ -53,6 +53,8 @@ const StyledTable = styled.table<{
|
||||
color: ${({ theme }) => theme.font.color.primary};
|
||||
border-right: 1px solid ${({ theme }) => theme.border.color.light};
|
||||
|
||||
padding: 0;
|
||||
|
||||
text-align: left;
|
||||
|
||||
:last-child {
|
||||
|
||||
@ -27,6 +27,6 @@
|
||||
.cell-base-container-soft-focus {
|
||||
background: var(--twentycrm-background-transparent-secondary);
|
||||
border-radius: var(--twentycrm-border-radius-sm);
|
||||
outline: 1px solid var(--twentycrm-font-color-extra-light);
|
||||
border: 1px solid var(--twentycrm-font-color-extra-light);
|
||||
}
|
||||
|
||||
|
||||
@ -3,15 +3,12 @@
|
||||
display: flex;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
padding-left: 8px;
|
||||
padding-right: 4px;
|
||||
padding-left: 6px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.cell-display-outer-container-soft-focus {
|
||||
background: var(--twentycrm-background-transparent-secondary);
|
||||
border-radius: var(--twentycrm-border-radius-sm);
|
||||
outline: 1px solid var(--twentycrm-font-color-extra-light);
|
||||
.cell-display-with-soft-focus {
|
||||
margin: -1px;
|
||||
}
|
||||
|
||||
.cell-display-inner-container {
|
||||
|
||||
@ -23,7 +23,7 @@ export const RecordTableCellDisplayContainer = ({
|
||||
onClick={onClick}
|
||||
className={clsx({
|
||||
[styles.cellDisplayOuterContainer]: true,
|
||||
[styles.cellDisplayOuterContainerSoftFocus]: softFocus,
|
||||
[styles.cellDisplayWithSoftFocus]: softFocus,
|
||||
})}
|
||||
ref={scrollRef}
|
||||
>
|
||||
|
||||
@ -4,7 +4,8 @@ import { RecordTableCellDisplayContainer } from './RecordTableCellDisplayContain
|
||||
|
||||
export const RecordTableCellDisplayMode = ({
|
||||
children,
|
||||
}: React.PropsWithChildren<unknown>) => {
|
||||
softFocus,
|
||||
}: React.PropsWithChildren<{ softFocus?: boolean }>) => {
|
||||
const isEmpty = useIsFieldEmpty();
|
||||
|
||||
if (isEmpty) {
|
||||
@ -12,7 +13,7 @@ export const RecordTableCellDisplayMode = ({
|
||||
}
|
||||
|
||||
return (
|
||||
<RecordTableCellDisplayContainer>
|
||||
<RecordTableCellDisplayContainer softFocus={softFocus}>
|
||||
{children}
|
||||
</RecordTableCellDisplayContainer>
|
||||
);
|
||||
|
||||
@ -159,6 +159,7 @@ export const RecordTableCellSoftFocusMode = ({
|
||||
<RecordTableCellDisplayContainer
|
||||
onClick={handleClick}
|
||||
scrollRef={scrollRef}
|
||||
softFocus
|
||||
>
|
||||
{editModeContentOnly ? editModeContent : nonEditModeContent}
|
||||
</RecordTableCellDisplayContainer>
|
||||
|
||||
Reference in New Issue
Block a user