v0.9.71 fixed broken ui layout
This commit is contained in:
@@ -1057,7 +1057,8 @@ export default function SchedulePage({ isToolManager, isMobile, onProfile, onHel
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Right panel */}
|
||||
{/* Right panel + mobile bottom bar — column so bottom bar stays at bottom */}
|
||||
<div style={{ flex:1, display:'flex', flexDirection:'column', overflow:'hidden', minWidth:0 }}>
|
||||
<div style={{ flex:1, display:'flex', flexDirection:'column', overflow:'hidden', minWidth:0 }}>
|
||||
{/* View toolbar */}
|
||||
<div style={{ display:'flex', alignItems:'center', gap:8, padding:'8px 16px', borderBottom:'1px solid var(--border)', background:'var(--surface)', flexShrink:0, flexWrap:'nowrap' }}>
|
||||
@@ -1168,33 +1169,38 @@ export default function SchedulePage({ isToolManager, isMobile, onProfile, onHel
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Mobile bottom bar: UserFooter + Create Event button */}
|
||||
</div>{/* end inner right panel */}
|
||||
|
||||
{/* Mobile bottom bar — matches Messages exactly: just the UserFooter */}
|
||||
{isMobile && (
|
||||
<div style={{ background:'var(--surface)', borderTop:'1px solid var(--border)', flexShrink:0 }}>
|
||||
{isToolManager && panel === 'calendar' && (
|
||||
<div style={{ padding:'10px 16px 4px', position:'relative' }} ref={createRef}>
|
||||
<button className="newchat-btn" onClick={() => setCreateOpen(v=>!v)} style={{ width:'100%', justifyContent:'center', gap:8 }}>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" width="18" height="18">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" d="M12 4.5v15m7.5-7.5h-15" />
|
||||
</svg>
|
||||
Create Event
|
||||
</button>
|
||||
{createOpen && (
|
||||
<div style={{ position:'absolute', bottom:'100%', left:16, right:16, zIndex:100, background:'var(--surface-variant)', border:'1px solid var(--border)', borderRadius:'var(--radius)', marginBottom:4, boxShadow:'0 -4px 16px rgba(0,0,0,0.15)' }}>
|
||||
{[['Event', ()=>{setPanel('eventForm');setEditingEvent(null);setCreateOpen(false);}],
|
||||
['Event Type', ()=>{setPanel('eventTypes');setCreateOpen(false);}],
|
||||
].map(([label,action])=>(
|
||||
<button key={label} onClick={action} style={{display:'block',width:'100%',padding:'12px 16px',textAlign:'left',fontSize:15,background:'none',border:'none',cursor:'pointer',color:'var(--text-primary)',borderBottom:'1px solid var(--border)'}}
|
||||
onMouseEnter={e=>e.currentTarget.style.background='var(--background)'} onMouseLeave={e=>e.currentTarget.style.background=''}>{label}</button>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
<UserFooter onProfile={onProfile} onHelp={onHelp} onAbout={onAbout} />
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Mobile FAB — floating create button, same style as Messages newchat-fab */}
|
||||
{isMobile && isToolManager && panel === 'calendar' && (
|
||||
<div style={{ position:'fixed', bottom:84, right:16, zIndex:30 }} ref={createRef}>
|
||||
<button className="newchat-fab" onClick={() => setCreateOpen(v=>!v)}>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={2} stroke="currentColor" width="24" height="24">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" d="M12 4.5v15m7.5-7.5h-15" />
|
||||
</svg>
|
||||
</button>
|
||||
{createOpen && (
|
||||
<div style={{ position:'absolute', bottom:'calc(100% + 8px)', right:0, zIndex:100, background:'var(--surface-variant)', border:'1px solid var(--border)', borderRadius:'var(--radius)', boxShadow:'0 -4px 16px rgba(0,0,0,0.15)', minWidth:180 }}>
|
||||
{[['Event', ()=>{setPanel('eventForm');setEditingEvent(null);setCreateOpen(false);}],
|
||||
['Event Type', ()=>{setPanel('eventTypes');setCreateOpen(false);}],
|
||||
].map(([label,action])=>(
|
||||
<button key={label} onClick={action} style={{display:'block',width:'100%',padding:'12px 16px',textAlign:'left',fontSize:15,background:'none',border:'none',cursor:'pointer',color:'var(--text-primary)',borderBottom:'1px solid var(--border)'}}
|
||||
onMouseEnter={e=>e.currentTarget.style.background='var(--background)'} onMouseLeave={e=>e.currentTarget.style.background=''}>{label}</button>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
</div>{/* end right+bottom column wrapper */}
|
||||
|
||||
{/* Event detail modal */}
|
||||
{detailEvent && (
|
||||
<EventDetailModal
|
||||
|
||||
Reference in New Issue
Block a user