fix: move sidebar toggle into header toolbar, left of view switcher
Removes the fixed-position button and places it inline in the desktop header controls row with matching hover-to-reveal behavior. v1.59.1
This commit is contained in:
parent
d7eeafb08f
commit
b26d710fec
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "my-weekly-todo-list",
|
"name": "my-weekly-todo-list",
|
||||||
"version": "1.59.0",
|
"version": "1.59.1",
|
||||||
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
|
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -5934,32 +5934,7 @@ export default function WeeklyView() {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Quick Settings toggle button (bottom-left) */}
|
{/* Quick Settings toggle button is now in the desktop header toolbar */}
|
||||||
{!showQuickSettings && (
|
|
||||||
<button
|
|
||||||
onClick={() => setShowQuickSettings(true)}
|
|
||||||
style={{
|
|
||||||
position: "fixed",
|
|
||||||
left: "8px",
|
|
||||||
top: "8px",
|
|
||||||
zIndex: 999,
|
|
||||||
background: darkMode ? "#1f2937" : "#f3f4f6",
|
|
||||||
border: `1px solid ${darkMode ? "#374151" : "#e5e7eb"}`,
|
|
||||||
borderRadius: "8px",
|
|
||||||
padding: "6px 8px",
|
|
||||||
cursor: "pointer",
|
|
||||||
color: darkMode ? "#9ca3af" : "#6b7280",
|
|
||||||
display: "flex",
|
|
||||||
alignItems: "center",
|
|
||||||
gap: "4px",
|
|
||||||
fontSize: "0.75rem",
|
|
||||||
boxShadow: "0 1px 4px rgba(0,0,0,0.08)",
|
|
||||||
}}
|
|
||||||
title={language === "de" ? "Schnelleinstellungen" : "Quick Settings"}
|
|
||||||
>
|
|
||||||
<PanelLeftOpen size={14} />
|
|
||||||
</button>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{/* View Transitions Style Block */}
|
{/* View Transitions Style Block */}
|
||||||
<style
|
<style
|
||||||
@ -6046,6 +6021,16 @@ export default function WeeklyView() {
|
|||||||
<header className="group relative flex items-center justify-between w-full px-4 py-2 border-b border-gray-200 bg-white dark:bg-gray-900 dark:border-gray-700 dark:text-white transition-colors duration-200" style={isMobile ? { display: "none" } : {}}>
|
<header className="group relative flex items-center justify-between w-full px-4 py-2 border-b border-gray-200 bg-white dark:bg-gray-900 dark:border-gray-700 dark:text-white transition-colors duration-200" style={isMobile ? { display: "none" } : {}}>
|
||||||
{/* LEFT SECTION: View Switcher, Days, Hours, Slot Duration */}
|
{/* LEFT SECTION: View Switcher, Days, Hours, Slot Duration */}
|
||||||
<div className="weekly-header-controls flex items-center gap-4 transition-opacity duration-300 opacity-0 group-hover:opacity-100" style={{ zIndex: 1 }}>
|
<div className="weekly-header-controls flex items-center gap-4 transition-opacity duration-300 opacity-0 group-hover:opacity-100" style={{ zIndex: 1 }}>
|
||||||
|
{/* Quick Settings toggle */}
|
||||||
|
{!showQuickSettings && (
|
||||||
|
<button
|
||||||
|
onClick={() => setShowQuickSettings(true)}
|
||||||
|
className="p-1.5 rounded text-gray-400 hover:text-gray-700 hover:bg-gray-100 dark:hover:text-white dark:hover:bg-gray-700 transition-colors"
|
||||||
|
title={language === "de" ? "Schnelleinstellungen" : "Quick Settings"}
|
||||||
|
>
|
||||||
|
<PanelLeftOpen size={16} />
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
{/* View Switcher */}
|
{/* View Switcher */}
|
||||||
<div className="flex items-center gap-0.5 bg-gray-100 dark:bg-gray-800 rounded p-0.5" title={t.viewStyle}>
|
<div className="flex items-center gap-0.5 bg-gray-100 dark:bg-gray-800 rounded p-0.5" title={t.viewStyle}>
|
||||||
<button
|
<button
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user