Fix: sidebar navigation from settings, missing thumbnails in all documents, and hiding upload buttons in office modes
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m16s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m16s
This commit is contained in:
parent
f9b0f515c5
commit
ffa2954cd9
2 changed files with 30 additions and 15 deletions
|
|
@ -1403,7 +1403,7 @@ export default function FileExplorer({ onLogout }: FileExplorerProps) {
|
|||
>
|
||||
<div className="flex flex-col gap-1 px-3 py-4 border-b" style={{ borderColor: 'var(--color-border-subtle)' }}>
|
||||
<button
|
||||
onClick={() => { setAppMode('drive'); setEditingFile(null); }}
|
||||
onClick={() => { setAppMode('drive'); setEditingFile(null); setActiveSection('files'); }}
|
||||
className="w-full flex items-center gap-3 px-3 py-2.5 rounded-xl text-sm font-bold transition-all duration-150"
|
||||
style={{
|
||||
backgroundColor: appMode === 'drive' ? 'var(--color-accent-subtle)' : 'transparent',
|
||||
|
|
@ -1417,7 +1417,7 @@ export default function FileExplorer({ onLogout }: FileExplorerProps) {
|
|||
</button>
|
||||
|
||||
<button
|
||||
onClick={() => { setAppMode('docs'); setEditingFile(null); }}
|
||||
onClick={() => { setAppMode('docs'); setEditingFile(null); setActiveSection('files'); }}
|
||||
className="w-full flex items-center gap-3 px-3 py-2.5 rounded-xl text-sm font-bold transition-all duration-150"
|
||||
style={{
|
||||
backgroundColor: appMode === 'docs' ? 'var(--color-accent-subtle)' : 'transparent',
|
||||
|
|
@ -1431,7 +1431,7 @@ export default function FileExplorer({ onLogout }: FileExplorerProps) {
|
|||
</button>
|
||||
|
||||
<button
|
||||
onClick={() => { setAppMode('slides'); setEditingFile(null); }}
|
||||
onClick={() => { setAppMode('slides'); setEditingFile(null); setActiveSection('files'); }}
|
||||
className="w-full flex items-center gap-3 px-3 py-2.5 rounded-xl text-sm font-bold transition-all duration-150"
|
||||
style={{
|
||||
backgroundColor: appMode === 'slides' ? 'var(--color-accent-subtle)' : 'transparent',
|
||||
|
|
@ -1445,7 +1445,7 @@ export default function FileExplorer({ onLogout }: FileExplorerProps) {
|
|||
</button>
|
||||
|
||||
<button
|
||||
onClick={() => { setAppMode('sheets'); setEditingFile(null); }}
|
||||
onClick={() => { setAppMode('sheets'); setEditingFile(null); setActiveSection('files'); }}
|
||||
className="w-full flex items-center gap-3 px-3 py-2.5 rounded-xl text-sm font-bold transition-all duration-150"
|
||||
style={{
|
||||
backgroundColor: appMode === 'sheets' ? 'var(--color-accent-subtle)' : 'transparent',
|
||||
|
|
@ -1766,7 +1766,7 @@ export default function FileExplorer({ onLogout }: FileExplorerProps) {
|
|||
)}
|
||||
</AnimatePresence>
|
||||
</div>
|
||||
{activeSection === 'files' && (
|
||||
{activeSection === 'files' && appMode === 'drive' && (
|
||||
<div className="relative">
|
||||
<button
|
||||
onClick={() => setMobileFabOpen(!mobileFabOpen)}
|
||||
|
|
@ -1872,7 +1872,7 @@ export default function FileExplorer({ onLogout }: FileExplorerProps) {
|
|||
</>
|
||||
)}
|
||||
|
||||
{activeSection === 'files' && (
|
||||
{activeSection === 'files' && appMode === 'drive' && (
|
||||
<button
|
||||
id="new-folder-button"
|
||||
onClick={() => setShowNewFolder(true)}
|
||||
|
|
@ -1884,7 +1884,7 @@ export default function FileExplorer({ onLogout }: FileExplorerProps) {
|
|||
</button>
|
||||
)}
|
||||
|
||||
{activeSection === 'files' && (
|
||||
{activeSection === 'files' && appMode === 'drive' && (
|
||||
<>
|
||||
<button
|
||||
id="upload-button"
|
||||
|
|
|
|||
Reference in a new issue