File tree 4 files changed +8
-10
lines changed
packages/twenty-front/src/modules/object-record
record-inline-cell/components
4 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ import { isFieldSelectValue } from '@/object-record/record-field/types/guards/is
36
36
import { isFieldText } from '@/object-record/record-field/types/guards/isFieldText' ;
37
37
import { isFieldTsVector } from '@/object-record/record-field/types/guards/isFieldTsVectorValue' ;
38
38
import { isFieldUuid } from '@/object-record/record-field/types/guards/isFieldUuid' ;
39
- import { stripSimpleQuotesFromString } from '~/utils/string/stripSimpleQuotesFromString' ;
40
39
import { isDefined } from 'twenty-shared/utils' ;
40
+ import { stripSimpleQuotesFromString } from '~/utils/string/stripSimpleQuotesFromString' ;
41
41
42
42
const isValueEmpty = ( value : unknown ) =>
43
43
! isDefined ( value ) ||
@@ -146,9 +146,7 @@ export const isFieldValueEmpty = ({
146
146
147
147
if ( isFieldRichTextV2 ( fieldDefinition ) ) {
148
148
return (
149
- ! isFieldRichTextV2Value ( fieldValue ) ||
150
- ( isValueEmpty ( fieldValue ?. blocknote ) &&
151
- isValueEmpty ( fieldValue ?. markdown ) )
149
+ ! isFieldRichTextV2Value ( fieldValue ) || isValueEmpty ( fieldValue ?. markdown )
152
150
) ;
153
151
}
154
152
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ const StyledLabelAndIconContainer = styled.div`
38
38
display: flex;
39
39
gap: ${ ( { theme } ) => theme . spacing ( 1 ) } ;
40
40
height: 18px;
41
- padding-top: 3px;
42
41
` ;
43
42
44
43
const StyledValueContainer = styled . div `
@@ -57,15 +56,16 @@ const StyledLabelContainer = styled.div<{ width?: number }>`
57
56
const StyledInlineCellBaseContainer = styled . div < {
58
57
isDisplayModeFixHeight ?: boolean ;
59
58
} > `
60
- align-items: flex-start;
61
59
box-sizing: border-box;
62
60
width: 100%;
63
61
display: flex;
64
- height: fit-content;
65
62
line-height: ${ ( { isDisplayModeFixHeight } ) =>
66
63
isDisplayModeFixHeight ? `24px` : `18px` } ;
64
+ height: ${ ( { isDisplayModeFixHeight } ) =>
65
+ isDisplayModeFixHeight ? `24px` : `18px` } ;
67
66
gap: ${ ( { theme } ) => theme . spacing ( 1 ) } ;
68
67
user-select: none;
68
+ align-items: center;
69
69
justify-content: center;
70
70
` ;
71
71
Original file line number Diff line number Diff line change @@ -43,9 +43,6 @@ const StyledRecordInlineCellNormalModeInnerContainer = styled.div`
43
43
align-content: center;
44
44
align-items: center;
45
45
color: ${ ( { theme } ) => theme . font . color . primary } ;
46
- padding-top: 3px;
47
- padding-bottom: 3px;
48
-
49
46
height: fit-content;
50
47
51
48
overflow: hidden;
Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ export const FieldsCard = ({
108
108
} ) ,
109
109
useUpdateRecord : useUpdateOneObjectRecordMutation ,
110
110
hotkeyScope : InlineCellHotkeyScope . InlineCell ,
111
+ isDisplayModeFixHeight : true ,
111
112
} }
112
113
>
113
114
< ActivityTargetsInlineCell
@@ -144,6 +145,7 @@ export const FieldsCard = ({
144
145
} ) ,
145
146
useUpdateRecord : useUpdateOneObjectRecordMutation ,
146
147
hotkeyScope : InlineCellHotkeyScope . InlineCell ,
148
+ isDisplayModeFixHeight : true ,
147
149
} }
148
150
>
149
151
< RecordFieldComponentInstanceContext . Provider
@@ -179,6 +181,7 @@ export const FieldsCard = ({
179
181
} ) ,
180
182
useUpdateRecord : useUpdateOneObjectRecordMutation ,
181
183
hotkeyScope : InlineCellHotkeyScope . InlineCell ,
184
+ isDisplayModeFixHeight : true ,
182
185
} }
183
186
>
184
187
< RecordDetailRelationSection
You can’t perform that action at this time.
0 commit comments