feat: implement full breadcrumb path navigation in Files tab

- Add breadcrumbPath array to app state for tracking folder hierarchy
- Rewrite updateBreadcrumb() to render full path: Home > folder > subfolder
- Each breadcrumb segment is clickable to navigate back to that level
- Current folder shown in bold (non-clickable), parent folders as links
- Reset breadcrumb path on tab switch, home navigation, and initial load
- Update navigateFolder/selectFolder to push to breadcrumb path
- Enhanced breadcrumb CSS with hover effects and dark mode support
This commit is contained in:
Diocrafts
2026-02-21 00:19:04 +01:00
parent a1a3bd1b2b
commit 269a5fe940
52 changed files with 6809 additions and 6683 deletions
+38
View File
@@ -0,0 +1,38 @@
/* Content area */
.content-area {
flex-grow: 1;
padding: 20px;
overflow-y: scroll;
scrollbar-gutter: stable;
}
.page-title {
font-size: 24px;
font-weight: bold;
margin-bottom: 20px;
color: #2d3748;
}
.actions-bar {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
}
.action-buttons {
display: flex;
gap: 12px;
}
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px;
text-align: center;
color: #888;
width: 100%;
height: 300px;
grid-column: 1 / -1;
}
+177
View File
@@ -0,0 +1,177 @@
/* Sidebar */
.sidebar {
width: 250px;
background: linear-gradient(180deg, #2a3042 0%, #232838 100%);
color: #fff;
display: flex;
flex-direction: column;
height: 100%;
flex-shrink: 0;
box-shadow: 2px 0 12px rgba(0,0,0,0.15);
}
.logo-container {
padding: 22px 20px;
display: flex;
align-items: center;
border-bottom: 1px solid rgba(255,255,255,0.07);
margin-bottom: 8px;
}
.logo {
width: 40px;
height: 40px;
background: linear-gradient(135deg, #ff5e3a 0%, #ff8a5c 100%);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 12px;
box-shadow: 0 3px 10px rgba(255,94,58,0.35);
transition: transform 0.2s, box-shadow 0.2s;
[dir='rtl'] & {
margin-left: 12px;
margin-right: unset;
}
}
.logo:hover {
transform: scale(1.05);
box-shadow: 0 4px 14px rgba(255,94,58,0.45);
}
.logo svg {
width: 22px;
height: 22px;
fill: white;
}
.app-name {
font-size: 19px;
font-weight: 700;
color: white;
letter-spacing: 0.3px;
}
.nav-menu {
display: flex;
flex-direction: column;
flex-grow: 1;
padding: 8px 12px;
gap: 2px;
}
.nav-item {
display: flex;
align-items: center;
padding: 11px 14px;
border-radius: 10px;
cursor: pointer;
color: rgba(255,255,255,0.65);
font-size: 14.5px;
font-weight: 500;
transition: all 0.2s ease;
position: relative;
border-left: 3px solid transparent;
[dir='rtl'] & {
border-left: none;
border-right: 3px solid transparent;
}
}
.nav-item:hover {
background-color: rgba(255,255,255,0.06);
color: rgba(255,255,255,0.9);
}
.nav-item.active {
background-color: rgba(255,94,58,0.12);
color: #fff;
border-left-color: #ff5e3a;
font-weight: 600;
[dir='rtl'] & {
border-left-color: transparent;
border-right-color: #ff5e3a;
}
}
.nav-item i,
.nav-item .oxi-icon {
margin-right: 14px;
width: 20px;
height: 20px;
text-align: center;
font-size: 16px;
transition: color 0.2s, transform 0.2s;
flex-shrink: 0;
[dir='rtl'] & {
margin-left: 14px;
margin-right: unset;
}
}
/* Colored icons per section */
.nav-item:nth-child(1) i, .nav-item:nth-child(1) .oxi-icon { color: #ffa94d; } /* Files - orange */
.nav-item:nth-child(2) i, .nav-item:nth-child(2) .oxi-icon { color: #74b9ff; } /* Shared - blue */
.nav-item:nth-child(3) i, .nav-item:nth-child(3) .oxi-icon { color: #81ecec; } /* Recent - teal */
.nav-item:nth-child(4) i, .nav-item:nth-child(4) .oxi-icon { color: #ffd43b; } /* Favorites - gold */
.nav-item:nth-child(5) i, .nav-item:nth-child(5) .oxi-icon { color: #ff7675; } /* Trash - red */
.nav-item.active:nth-child(1) i, .nav-item.active:nth-child(1) .oxi-icon { color: #ff5e3a; }
.nav-item.active:nth-child(2) i, .nav-item.active:nth-child(2) .oxi-icon { color: #0984e3; }
.nav-item.active:nth-child(3) i, .nav-item.active:nth-child(3) .oxi-icon { color: #00cec9; }
.nav-item.active:nth-child(4) i, .nav-item.active:nth-child(4) .oxi-icon { color: #f0c800; }
.nav-item.active:nth-child(5) i, .nav-item.active:nth-child(5) .oxi-icon { color: #e74c3c; }
.nav-item:hover i,
.nav-item:hover .oxi-icon {
transform: scale(1.1);
}
/* Storage indicator */
.storage-container {
margin: auto 12px 16px 12px;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.07);
border-radius: 12px;
padding: 16px;
}
.storage-title {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
margin-bottom: 12px;
font-size: 13px;
font-weight: 600;
color: rgba(255,255,255,0.8);
letter-spacing: 0.3px;
}
.storage-bar {
height: 6px;
background-color: rgba(255,255,255,0.1);
border-radius: 3px;
overflow: hidden;
margin-bottom: 10px;
}
.storage-fill {
height: 100%;
background: linear-gradient(90deg, #ff5e3a 0%, #ff8a5c 100%);
border-radius: 3px;
width: 0%;
transition: width 0.8s ease;
}
.storage-info {
text-align: center;
font-size: 11.5px;
color: rgba(255,255,255,0.5);
font-weight: 400;
}
+127
View File
@@ -0,0 +1,127 @@
/* Main content */
.main-content {
flex-grow: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}
/* Top bar */
.top-bar {
height: 70px;
min-height: 70px;
max-height: 70px;
background-color: white;
border-bottom: 1px solid #e6e6e6;
display: flex;
align-items: center;
padding: 0 30px;
justify-content: space-between;
flex-shrink: 0;
}
.search-container {
flex-grow: 1;
max-width: 600px;
position: relative;
margin-right: 20px;
display: flex;
align-items: center;
[dir='rtl'] & {
margin-left: 20px;
margin-right: unset;
}
}
.search-container input {
width: 100%;
padding: 12px 50px 12px 44px;
border-radius: 12px;
border: 2px solid #e2e8f0;
background-color: #f8fafc;
font-size: 14px;
height: 46px;
color: #1a202c;
transition: all 0.2s ease;
}
.search-container input:hover {
border-color: #cbd5e0;
background-color: #fff;
}
.search-container input:focus {
outline: none;
border-color: #ff5e3a;
background-color: #fff;
box-shadow: 0 0 0 4px rgba(255, 94, 58, 0.1);
}
.search-container input::placeholder {
color: #a0aec0;
}
.search-icon {
position: absolute;
left: 16px;
top: 50%;
transform: translateY(-50%);
color: #a0aec0;
font-size: 16px;
pointer-events: none;
transition: color 0.2s ease;
[dir='rtl'] & {
right: 16px;
left: unset;
}
}
.search-container input:focus + .search-icon,
.search-container:focus-within .search-icon {
color: #ff5e3a;
}
.search-button {
position: absolute;
right: 6px;
top: 50%;
transform: translateY(-50%);
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
color: white;
border: none;
border-radius: 10px;
width: 36px;
height: 36px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
box-shadow: 0 2px 8px rgba(255, 94, 58, 0.3);
[dir='rtl'] & {
left: 6px;
right: unset;
}
}
.search-button:hover {
transform: translateY(-50%) scale(1.05);
box-shadow: 0 4px 12px rgba(255, 94, 58, 0.4);
}
.search-button:active {
transform: translateY(-50%) scale(0.98);
}
.search-button i {
font-size: 14px;
}
.user-controls {
display: flex;
align-items: center;
gap: 12px;
}