fix(flowpilot): fix message bar hidden behind fixed action bar
The message bar was in normal document flow but the action bar uses position:fixed at bottom:0, covering it. Now the message bar is also fixed-positioned at bottom:60px (above the action bar), matching the same left offset pattern. Added extra bottom padding to the conversation column for clearance. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -40,35 +40,44 @@ export function FlowPilotMessageBar({ onRespond, disabled = false, isProcessing
|
|||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="px-3 sm:px-4 lg:px-5 pb-3">
|
<div
|
||||||
<div className={cn(
|
className="fixed bottom-[60px] right-0 z-40 px-3 sm:px-4 lg:px-5 pb-2"
|
||||||
'flex items-end gap-2 rounded-xl border bg-card p-2 transition-colors',
|
style={{ left: 'var(--sidebar-w, 0px)' }}
|
||||||
isDisabled
|
>
|
||||||
? 'border-border/50 opacity-50'
|
<div className="mx-auto max-w-2xl lg:pr-72">
|
||||||
: 'border-border focus-within:border-[rgba(6,182,212,0.3)]'
|
<div
|
||||||
)}>
|
|
||||||
<textarea
|
|
||||||
ref={textareaRef}
|
|
||||||
value={message}
|
|
||||||
onChange={handleInput}
|
|
||||||
onKeyDown={handleKeyDown}
|
|
||||||
placeholder={isProcessing ? 'FlowPilot is thinking...' : 'Type a message...'}
|
|
||||||
disabled={isDisabled}
|
|
||||||
rows={1}
|
|
||||||
className="flex-1 resize-none bg-transparent text-sm text-foreground placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed py-1.5 px-2"
|
|
||||||
/>
|
|
||||||
<button
|
|
||||||
onClick={handleSubmit}
|
|
||||||
disabled={isDisabled || !message.trim()}
|
|
||||||
className={cn(
|
className={cn(
|
||||||
'flex h-8 w-8 shrink-0 items-center justify-center rounded-lg transition-all',
|
'flex items-end gap-2 rounded-xl border p-2 transition-colors',
|
||||||
message.trim() && !isDisabled
|
isDisabled
|
||||||
? 'bg-gradient-brand text-[#101114] hover:opacity-90 active:scale-[0.97]'
|
? 'border-border/50 opacity-50'
|
||||||
: 'bg-[rgba(255,255,255,0.04)] text-muted-foreground cursor-not-allowed'
|
: 'border-border focus-within:border-[rgba(6,182,212,0.3)]'
|
||||||
)}
|
)}
|
||||||
|
style={{ background: 'rgba(16, 17, 20, 0.95)', backdropFilter: 'blur(16px)' }}
|
||||||
>
|
>
|
||||||
<Send size={14} />
|
<textarea
|
||||||
</button>
|
ref={textareaRef}
|
||||||
|
value={message}
|
||||||
|
onChange={handleInput}
|
||||||
|
onKeyDown={handleKeyDown}
|
||||||
|
placeholder={isProcessing ? 'FlowPilot is thinking...' : 'Type a message...'}
|
||||||
|
disabled={isDisabled}
|
||||||
|
rows={1}
|
||||||
|
className="flex-1 resize-none bg-transparent text-sm text-foreground placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed py-1.5 px-2"
|
||||||
|
/>
|
||||||
|
<button
|
||||||
|
onClick={handleSubmit}
|
||||||
|
disabled={isDisabled || !message.trim()}
|
||||||
|
aria-label="Send message"
|
||||||
|
className={cn(
|
||||||
|
'flex h-8 w-8 shrink-0 items-center justify-center rounded-lg transition-all',
|
||||||
|
message.trim() && !isDisabled
|
||||||
|
? 'bg-gradient-brand text-[#101114] hover:opacity-90 active:scale-[0.97]'
|
||||||
|
: 'bg-[rgba(255,255,255,0.04)] text-muted-foreground cursor-not-allowed'
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
<Send size={14} />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -194,8 +194,8 @@ export function FlowPilotSession({
|
|||||||
|
|
||||||
{/* Main content area: conversation + sidebar */}
|
{/* Main content area: conversation + sidebar */}
|
||||||
<div className="flex flex-1 min-h-0">
|
<div className="flex flex-1 min-h-0">
|
||||||
{/* Conversation column — pb-20 provides clearance for the fixed action bar */}
|
{/* Conversation column — pb-32 provides clearance for the fixed message bar + action bar */}
|
||||||
<div ref={scrollRef} className="flex-1 overflow-y-auto p-3 pb-20 sm:p-4 sm:pb-20 lg:p-6 lg:pb-20">
|
<div ref={scrollRef} className="flex-1 overflow-y-auto p-3 pb-32 sm:p-4 sm:pb-32 lg:p-6 lg:pb-32">
|
||||||
<div className="mx-auto max-w-2xl space-y-3">
|
<div className="mx-auto max-w-2xl space-y-3">
|
||||||
{allSteps.map((step) => (
|
{allSteps.map((step) => (
|
||||||
<FlowPilotStepCard
|
<FlowPilotStepCard
|
||||||
|
|||||||
Reference in New Issue
Block a user