Skip to content

Commit

Permalink
Fixed paddings
Browse files Browse the repository at this point in the history
  • Loading branch information
pkirilin committed Jul 7, 2024
1 parent 8bc509e commit 533a96f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/frontend/src/features/note/addEdit/ui/AddNote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export const AddNote: FC<Props> = ({ pageId, mealType }) => {
productAutocompleteData={productAutocompleteData}
categorySelect={categorySelect}
recognizeNotesResult={recognizeNotesResult}
disableContentPaddingTop
onCancel={handleCancel}
onSubmit={handleSubmit}
onSubmitSuccess={handleSubmitSuccess}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ interface Props {
productAutocompleteData: productLib.AutocompleteData;
categorySelect: categoryLib.CategorySelectData;
recognizeNotesResult: RecognizeNotesResult;
disableContentPaddingTop?: boolean;
renderTrigger: (onClick: () => void) => ReactElement;
renderContent: (props: RenderContentProps) => ReactElement;
onCancel: () => void;
Expand All @@ -39,6 +40,7 @@ export const NoteInputFlow: FC<Props> = ({
productAutocompleteData,
categorySelect,
recognizeNotesResult,
disableContentPaddingTop,
renderTrigger,
renderContent,
onCancel,
Expand Down Expand Up @@ -242,6 +244,8 @@ export const NoteInputFlow: FC<Props> = ({
<Dialog
pinToTop
renderMode="fullScreenOnMobile"
disableContentPaddingTop={disableContentPaddingTop}
disableContentPaddingBottom
opened={dialogOpened}
title={dialogState.title}
content={dialogState.content}
Expand Down

0 comments on commit 533a96f

Please sign in to comment.