SeriousSam07 commited on
Commit
4e1ff98
·
1 Parent(s): 0b6d65e

Fix horizontal scrolling issue on mobile for the Ask Ritu AI sidebar

Browse files
frontend/src/components/Dashboard/Dashboard.jsx CHANGED
@@ -996,9 +996,9 @@ export default function Dashboard() {
996
 
997
  {/* ── RIGHT SIDEBAR (ClimateBot) ── */}
998
  <div className={`
999
- absolute top-0 right-0 z-[110] h-full w-[85vw] sm:w-96 bg-white/95 backdrop-blur-3xl border-l border-slate-200 shadow-2xl
1000
  transition-transform duration-300 ease-in-out flex flex-col
1001
- ${isRightOpen ? 'translate-x-0' : 'translate-x-full'}
1002
  `}>
1003
  <div className="p-4 border-b border-slate-200 flex justify-between items-center bg-slate-50 relative z-[150]">
1004
  <h2 className="font-bold text-slate-800 flex items-center gap-2" style={{ fontFamily: 'Samarkan, sans-serif', fontSize: '1.25rem' }}>Ritu AI</h2>
 
996
 
997
  {/* ── RIGHT SIDEBAR (ClimateBot) ── */}
998
  <div className={`
999
+ fixed top-0 right-0 z-[110] h-full w-[85vw] sm:w-96 bg-white/95 backdrop-blur-3xl border-l border-slate-200 shadow-2xl
1000
  transition-transform duration-300 ease-in-out flex flex-col
1001
+ ${isRightOpen ? 'translate-x-0' : 'translate-x-full shadow-none pointer-events-none'}
1002
  `}>
1003
  <div className="p-4 border-b border-slate-200 flex justify-between items-center bg-slate-50 relative z-[150]">
1004
  <h2 className="font-bold text-slate-800 flex items-center gap-2" style={{ fontFamily: 'Samarkan, sans-serif', fontSize: '1.25rem' }}>Ritu AI</h2>