Skip to content

Avoid TranscriptionView to be covered by ControlBar #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
8 changes: 4 additions & 4 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function Page() {
function SimpleVoiceAssistant(props: { onConnectButtonClicked: () => void }) {
const { state: agentState } = useVoiceAssistant();
return (
<>
<div className="flex flex-col h-full relative">
<AnimatePresence>
{agentState === "disconnected" && (
<motion.button
Expand All @@ -77,17 +77,17 @@ function SimpleVoiceAssistant(props: { onConnectButtonClicked: () => void }) {
Start a conversation
</motion.button>
)}
<div className="w-3/4 lg:w-1/2 mx-auto h-full">
<div className="w-3/4 lg:w-1/2 mx-auto flex-grow overflow-y-auto pb-28">
<TranscriptionView />
</div>
</AnimatePresence>

<RoomAudioRenderer />
<NoAgentNotification state={agentState} />
<div className="fixed bottom-0 w-full px-4 py-2">
<div className="fixed bottom-0 w-full px-4 py-2 bg-[var(--lk-bg)]">
<ControlBar />
</div>
</>
</div>
);
}

Expand Down