fix&style: conversation can't create when join existing group after started, improve layout #124
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to improve the layout and functionality of the chatroom and session components, as well as updates to the server-side logic for creating conversations and user sign-in. The most important changes include modifications to the
Chatroom.svelte
,HostView.svelte
, andParticipantView.svelte
components, as well as updates to the Firebase server and sign-in API.Improvements to chatroom layout:
src/lib/components/Chatroom.svelte
: Added minimum height to the chat container and adjusted the layout of the message input area to improve responsiveness and usability. [1] [2] [3]Enhancements to session views:
src/lib/components/session/HostView.svelte
: Centered the session code display for better visual alignment.src/lib/components/session/ParticipantView.svelte
: Added a minimum height to the participant view container to maintain consistent layout.Updates to server-side logic:
src/lib/server/firebase.ts
: Modified thecreateConversation
function to check for existing conversations by user ID, ensuring that duplicate conversations are not created.src/routes/api/auth/signin/+server.ts
: Updated the default values fortitle
andbio
fields during user sign-in to provide initial data.