v.0.9.66 UI changes
This commit is contained in:
@@ -905,9 +905,6 @@ export default function SchedulePage({ isToolManager, isMobile, onProfile, onHel
|
||||
{isToolManager && (
|
||||
<div style={{ position:'relative', marginBottom:12 }} 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
|
||||
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2"><polyline points="6 9 12 15 18 9"/></svg>
|
||||
</button>
|
||||
@@ -1019,10 +1016,7 @@ export default function SchedulePage({ isToolManager, isMobile, onProfile, onHel
|
||||
onSave={handleSaved} onCancel={()=>{setPanel('calendar');setEditingEvent(null);}} onDelete={handleDelete}/>
|
||||
</div>
|
||||
)}
|
||||
{panel === 'eventForm' && isToolManager && isMobile && (
|
||||
<MobileEventForm event={editingEvent} userGroups={userGroups} eventTypes={eventTypes} selectedDate={selDate} isToolManager={isToolManager}
|
||||
onSave={handleSaved} onCancel={()=>{setPanel('calendar');setEditingEvent(null);}} onDelete={handleDelete}/>
|
||||
)}
|
||||
|
||||
{panel === 'eventTypes' && isToolManager && (
|
||||
<div style={{ padding:28 }}>
|
||||
<div style={{ display:'flex', alignItems:'center', gap:10, marginBottom:24 }}>
|
||||
@@ -1051,6 +1045,22 @@ export default function SchedulePage({ isToolManager, isMobile, onProfile, onHel
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Mobile Event Form — full screen overlay, hides toolbar/date picker */}
|
||||
{panel === 'eventForm' && isToolManager && isMobile && (
|
||||
<div style={{ position:'fixed', top:0, left:0, right:0, bottom:0, zIndex:40, background:'var(--background)', display:'flex', flexDirection:'column' }}>
|
||||
<MobileEventForm
|
||||
event={editingEvent}
|
||||
userGroups={userGroups}
|
||||
eventTypes={eventTypes}
|
||||
selectedDate={selDate}
|
||||
isToolManager={isToolManager}
|
||||
onSave={handleSaved}
|
||||
onCancel={()=>{setPanel('calendar');setEditingEvent(null);}}
|
||||
onDelete={handleDelete}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Mobile FAB for creating events */}
|
||||
{isMobile && isToolManager && panel === 'calendar' && (
|
||||
<button onClick={()=>{setPanel('eventForm');setEditingEvent(null);}} style={{ position:'fixed',bottom:24,right:24,zIndex:30,width:56,height:56,borderRadius:'50%',background:'var(--primary)',color:'white',border:'none',cursor:'pointer',boxShadow:'0 4px 16px rgba(0,0,0,0.25)',display:'flex',alignItems:'center',justifyContent:'center' }}>
|
||||
|
||||
Reference in New Issue
Block a user