Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import type { ProceedingSection } from '@features/ai-meeting-manager/types/proceeding.types';

import ProceedingDocSkeleton from './ProceedingDocSkeleton.client';

const ProceedingDoc = ({ sections }: { sections: ProceedingSection[] }) => {
// { items: [''], title: "" } 인 상태
const isBlank = (s: string) => !s;
Expand All @@ -12,7 +14,9 @@ const ProceedingDoc = ({ sections }: { sections: ProceedingSection[] }) => {
};

return (
<div className="md-proceeding scrollbar-component h-[calc(100dvh_-_var(--gnb-top-height)_-_var(--meeting-header-height)_-_var(--tab-height)_-_24pxr)] w-full overflow-y-auto">
<div className="md-proceeding scrollbar-component h-[calc(100dvh_-_var(--gnb-top-height)_-_var(--meeting-header-height)_-_var(--tab-height)_-_var(--tab-height))] w-full overflow-y-auto">
{/* sections이 안 넘어왔을 때 스켈레톤*/}
{!sections && <ProceedingDocSkeleton />}
{isNoSections(sections) ? (
<p className="p-16pxr text-b2-rg text-gray-300">회의 진행 내용이 없습니다.</p>
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,18 +121,6 @@ const ProceedingEditor = ({
[focus, setSectionsAndEmit],
);

const insertSectionBelow = useCallback(
(secIdx: number) => {
setSectionsAndEmit((prev) => [
...prev.slice(0, secIdx + 1),
{ title: '', items: [''] },
...prev.slice(secIdx + 1),
]);
setTimeout(() => focus(keyOfTitle(secIdx + 1)), 0);
},
[focus, setSectionsAndEmit],
);

const deleteSectionAndFocusPrevLastItem = useCallback(
(secIdx: number) => {
if (secIdx <= 0) return;
Expand Down Expand Up @@ -347,7 +335,7 @@ const ProceedingEditor = ({
<div
// 임시 높이 잡아둠
className={clsx(
'p-20pxr rounded-10pxr scrollbar-component h-950pxr min-h-0 w-full overflow-y-auto bg-gray-600',
'p-20pxr rounded-10pxr scrollbar-component h-[calc(100dvh_-_var(--gnb-top-height)_-_var(--meeting-header-height)_-_var(--tab-height)_-_var(--tab-height))] min-h-0 w-full overflow-y-auto bg-gray-600',
disabled ? 'disabled-style' : '',
)}
aria-disabled={disabled}
Expand Down