fix: update sidebar border styling for consistency across pages
This commit is contained in:
@@ -697,7 +697,7 @@ export default function CalendarPage() {
|
|||||||
<div className="flex h-dvh bg-background overflow-hidden">
|
<div className="flex h-dvh bg-background overflow-hidden">
|
||||||
{/* Left Navigation Rail */}
|
{/* Left Navigation Rail */}
|
||||||
{!isMobile && (
|
{!isMobile && (
|
||||||
<div className="w-14 border-r border-border bg-secondary flex flex-col flex-shrink-0">
|
<div className="w-14 bg-secondary flex flex-col flex-shrink-0" style={{ borderRight: '1px solid rgba(128, 128, 128, 0.3)' }}>
|
||||||
<NavigationRail
|
<NavigationRail
|
||||||
collapsed
|
collapsed
|
||||||
quota={quota}
|
quota={quota}
|
||||||
@@ -707,28 +707,7 @@ export default function CalendarPage() {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<div className="flex flex-col flex-1 min-w-0">
|
{/* Sidebar - full height */}
|
||||||
<CalendarToolbar
|
|
||||||
selectedDate={selectedDate}
|
|
||||||
viewMode={viewMode}
|
|
||||||
onPrev={navigatePrev}
|
|
||||||
onNext={navigateNext}
|
|
||||||
onToday={goToToday}
|
|
||||||
onViewModeChange={setViewMode}
|
|
||||||
onCreateEvent={() => openCreateModal()}
|
|
||||||
onImport={() => setShowImportModal(true)}
|
|
||||||
onSubscribe={() => setShowSubscriptionModal(true)}
|
|
||||||
isMobile={isMobile}
|
|
||||||
calendars={calendars}
|
|
||||||
selectedCalendarIds={selectedCalendarIds}
|
|
||||||
onToggleVisibility={toggleCalendarVisibility}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<div
|
|
||||||
className="flex flex-1 overflow-hidden relative"
|
|
||||||
onTouchStart={handleTouchStart}
|
|
||||||
onTouchEnd={handleTouchEnd}
|
|
||||||
>
|
|
||||||
{!isMobile && (
|
{!isMobile && (
|
||||||
<>
|
<>
|
||||||
<div
|
<div
|
||||||
@@ -769,6 +748,28 @@ export default function CalendarPage() {
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
<div className="flex flex-col flex-1 min-w-0">
|
||||||
|
<CalendarToolbar
|
||||||
|
selectedDate={selectedDate}
|
||||||
|
viewMode={viewMode}
|
||||||
|
onPrev={navigatePrev}
|
||||||
|
onNext={navigateNext}
|
||||||
|
onToday={goToToday}
|
||||||
|
onViewModeChange={setViewMode}
|
||||||
|
onCreateEvent={() => openCreateModal()}
|
||||||
|
onImport={() => setShowImportModal(true)}
|
||||||
|
onSubscribe={() => setShowSubscriptionModal(true)}
|
||||||
|
isMobile={isMobile}
|
||||||
|
calendars={calendars}
|
||||||
|
selectedCalendarIds={selectedCalendarIds}
|
||||||
|
onToggleVisibility={toggleCalendarVisibility}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<div
|
||||||
|
className="flex flex-1 overflow-hidden relative"
|
||||||
|
onTouchStart={handleTouchStart}
|
||||||
|
onTouchEnd={handleTouchEnd}
|
||||||
|
>
|
||||||
{renderView()}
|
{renderView()}
|
||||||
|
|
||||||
{/* Desktop event panel */}
|
{/* Desktop event panel */}
|
||||||
|
|||||||
@@ -437,7 +437,7 @@ export default function ContactsPage() {
|
|||||||
return (
|
return (
|
||||||
<div className="flex h-dvh bg-background overflow-hidden">
|
<div className="flex h-dvh bg-background overflow-hidden">
|
||||||
{!isMobile && (
|
{!isMobile && (
|
||||||
<div className="w-14 border-r border-border bg-secondary flex flex-col flex-shrink-0">
|
<div className="w-14 bg-secondary flex flex-col flex-shrink-0" style={{ borderRight: '1px solid rgba(128, 128, 128, 0.3)' }}>
|
||||||
<NavigationRail
|
<NavigationRail
|
||||||
collapsed
|
collapsed
|
||||||
quota={quota}
|
quota={quota}
|
||||||
|
|||||||
@@ -348,7 +348,7 @@ export default function FilesPage() {
|
|||||||
return (
|
return (
|
||||||
<div className="flex h-dvh bg-background overflow-hidden">
|
<div className="flex h-dvh bg-background overflow-hidden">
|
||||||
{!isMobile && (
|
{!isMobile && (
|
||||||
<div className="w-14 border-r border-border bg-secondary flex flex-col flex-shrink-0">
|
<div className="w-14 bg-secondary flex flex-col flex-shrink-0" style={{ borderRight: '1px solid rgba(128, 128, 128, 0.3)' }}>
|
||||||
<NavigationRail
|
<NavigationRail
|
||||||
collapsed
|
collapsed
|
||||||
quota={quota}
|
quota={quota}
|
||||||
|
|||||||
@@ -935,7 +935,7 @@ export default function Home() {
|
|||||||
<div className="flex flex-1 overflow-hidden">
|
<div className="flex flex-1 overflow-hidden">
|
||||||
{/* Desktop Navigation Rail */}
|
{/* Desktop Navigation Rail */}
|
||||||
{!isMobile && !isTablet && (
|
{!isMobile && !isTablet && (
|
||||||
<div className="w-14 border-r border-border bg-secondary flex flex-col flex-shrink-0">
|
<div className="w-14 bg-secondary flex flex-col flex-shrink-0" style={{ borderRight: '1px solid rgba(128, 128, 128, 0.3)' }}>
|
||||||
<NavigationRail
|
<NavigationRail
|
||||||
collapsed
|
collapsed
|
||||||
quota={quota}
|
quota={quota}
|
||||||
|
|||||||
@@ -284,7 +284,7 @@ export default function SettingsPage() {
|
|||||||
return (
|
return (
|
||||||
<div className="flex h-dvh bg-background">
|
<div className="flex h-dvh bg-background">
|
||||||
{/* Navigation Rail */}
|
{/* Navigation Rail */}
|
||||||
<div className="w-14 border-r border-border bg-secondary flex flex-col flex-shrink-0">
|
<div className="w-14 bg-secondary flex flex-col flex-shrink-0" style={{ borderRight: '1px solid rgba(128, 128, 128, 0.3)' }}>
|
||||||
<NavigationRail
|
<NavigationRail
|
||||||
collapsed
|
collapsed
|
||||||
quota={quota}
|
quota={quota}
|
||||||
|
|||||||
@@ -118,17 +118,19 @@ export function CalendarToolbar({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={cn("flex items-center gap-1.5 px-2 py-2 border-b border-border flex-wrap", !isMobile && "px-4 py-3 gap-2")}>
|
<div className={cn("flex items-center gap-1.5 px-2 py-2 border-b border-border flex-wrap", !isMobile && "px-4 py-3 gap-2")}>
|
||||||
|
{isMobile && (
|
||||||
<div className="flex items-center gap-0.5">
|
<div className="flex items-center gap-0.5">
|
||||||
<button onClick={onPrev} className="p-2 rounded hover:bg-muted transition-colors touch-manipulation" aria-label={t("nav_prev")}>
|
<button onClick={onPrev} className="p-2 rounded hover:bg-muted transition-colors touch-manipulation" aria-label={t("nav_prev")}>
|
||||||
<ChevronLeft className="w-4 h-4" />
|
<ChevronLeft className="w-4 h-4" />
|
||||||
</button>
|
</button>
|
||||||
<span className={cn("text-sm font-medium text-center", isMobile ? "min-w-[80px]" : "min-w-[140px]")}>
|
<span className={cn("text-sm font-medium text-center min-w-[80px]")}>
|
||||||
{getDateLabel()}
|
{getDateLabel()}
|
||||||
</span>
|
</span>
|
||||||
<button onClick={onNext} className="p-2 rounded hover:bg-muted transition-colors touch-manipulation" aria-label={t("nav_next")}>
|
<button onClick={onNext} className="p-2 rounded hover:bg-muted transition-colors touch-manipulation" aria-label={t("nav_next")}>
|
||||||
<ChevronRight className="w-4 h-4" />
|
<ChevronRight className="w-4 h-4" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
<Button variant="outline" size="sm" onClick={onToday} className="touch-manipulation">
|
<Button variant="outline" size="sm" onClick={onToday} className="touch-manipulation">
|
||||||
{t("views.today")}
|
{t("views.today")}
|
||||||
|
|||||||
Reference in New Issue
Block a user