Skip to content

Commit 3aae4e7

Browse files
committed
fix: notepad.
1 parent df0130c commit 3aae4e7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/pages/apps/NotepadPage.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, {useState, useEffect, useRef} from 'react';
22
import {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';
44
import useSeo from '../../hooks/useSeo';
55
import {useToast} from '../../hooks/useToast';
66
import 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

Comments
 (0)