11import React , { useState , useEffect , useRef } from 'react' ;
22import { Link } from 'react-router-dom' ;
3- import { ArrowLeftIcon , DownloadSimple , Trash , CloudRain , FloppyDisk , FolderOpen , ArrowsOutLineHorizontal , ArrowsInLineHorizontal } from '@phosphor-icons/react' ;
3+ import { ArrowLeftIcon , DownloadSimple , Trash , CloudRain , FloppyDisk , FolderOpen , ArrowsOutLineVerticalIcon } from '@phosphor-icons/react' ;
44import useSeo from '../../hooks/useSeo' ;
55import { useToast } from '../../hooks/useToast' ;
66import ConfirmationModal from '../../components/ConfirmationModal' ;
@@ -141,15 +141,15 @@ const NotepadPage = () => {
141141
142142 < div className = "container mx-auto px-4 py-8 flex-grow flex flex-col relative z-10 max-w-4xl" >
143143 { /* Header */ }
144- < div className = "flex justify-between items-center mb-6" >
144+ < div className = "flex items-center mb-6 relative " >
145145 < Link to = "/apps"
146146 className = { `flex items-center gap-2 hover:underline ${ isRainy ? 'text-gray-400 hover:text-white' : 'text-gray-600 hover:text-gray-900' } ` } >
147147 < ArrowLeftIcon /> Back to Apps
148148 </ Link >
149- < h1 className = { `text-2xl font-serif font-bold tracking-wide ${ isRainy ? 'text-gray-200' : 'text-gray-800' } ` } >
149+ < h1 className = { `absolute left-1/2 -translate-x-1/2 text-2xl font-serif font-bold tracking-wide ${ isRainy ? 'text-gray-200' : 'text-gray-800' } ` } >
150150 Notepad
151151 </ h1 >
152- < div className = "flex gap-2" >
152+ < div className = "flex gap-2 ml-auto " >
153153 < button
154154 onClick = { handleSave }
155155 className = { `p-2 rounded-full transition-colors ${ isRainy ? 'text-cyan-400 hover:bg-cyan-900/30' : 'text-cyan-600 hover:bg-cyan-100' } ` }
@@ -169,7 +169,7 @@ const NotepadPage = () => {
169169 className = { `p-2 rounded-full transition-colors ${ isFixedSize ? 'text-gray-500 hover:bg-gray-200' : 'text-blue-300 bg-blue-900/30 hover:bg-blue-900/50' } ` }
170170 title = { isFixedSize ? 'Expand Notepad' : 'Fix Notepad Height' }
171171 >
172- { isFixedSize ? < ArrowsOutLineHorizontal size = { 20 } /> : < ArrowsInLineHorizontal size = { 20 } /> }
172+ { isFixedSize ? < ArrowsOutLineVerticalIcon size = { 20 } /> : < ArrowsOutLineVerticalIcon size = { 20 } /> }
173173 </ button >
174174 < button
175175 onClick = { toggleRain }
0 commit comments