fix: position kaomoji picker above message input bar

Moved EmojiPicker inside the form element so it anchors to the
input area (form is already position:relative). Picker now pops
up above the input instead of floating in the message scroll area.
This commit is contained in:
2026-07-02 12:16:57 -04:00
parent 19ac68d058
commit 722eab8e94
+6 -8
View File
@@ -661,14 +661,6 @@ export function ChatArea() {
<GiphyPicker onSelect={handleGifSelect} onClose={() => setShowGifPicker(false)} /> <GiphyPicker onSelect={handleGifSelect} onClose={() => setShowGifPicker(false)} />
</div> </div>
)} )}
{showKaomoji && (
<div className="px-3 pb-1">
<EmojiPicker
onSelect={(emoji) => setInput((prev) => prev + emoji)}
onClose={() => setShowKaomoji(false)}
/>
</div>
)}
<div className="px-3 pt-1 text-xs text-gb-fg-f font-mono italic h-5 select-none"> <div className="px-3 pt-1 text-xs text-gb-fg-f font-mono italic h-5 select-none">
{(() => { {(() => {
const chTyping = activeChannelId ? (typingUsers[activeChannelId] || []).filter(u => u.userId !== currentUser?.id) : []; const chTyping = activeChannelId ? (typingUsers[activeChannelId] || []).filter(u => u.userId !== currentUser?.id) : [];
@@ -741,6 +733,12 @@ export function ChatArea() {
> >
[] []
</button> </button>
{showKaomoji && (
<EmojiPicker
onSelect={(emoji) => setInput((prev) => prev + emoji)}
onClose={() => setShowKaomoji(false)}
/>
)}
</form> </form>
</div> </div>
{activeThread && ( {activeThread && (