Skip to content

Commit 6074010

Browse files
committed
style: same style for email and help buttons
1 parent 77d5cb7 commit 6074010

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/components/ui/tour/HelpButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const HelpButton: React.FC<HelpButtonProps> = ({
3434
setIsPulsing(false); // Stop pulsing when clicked
3535
onClick();
3636
}}
37-
className={`fixed bottom-8 left-4 z-40 rounded-full flex items-center p-2 shadow-lg bg-blue-600 hover:bg-blue-700 transition-all duration-150 focus:outline-none focus:ring-2 focus:ring-blue-400
37+
className={`fixed bottom-4 left-4 z-40 rounded-full flex items-center p-2 shadow-lg bg-blue-600 hover:bg-blue-700 transition-all duration-150 focus:outline-none focus:ring-2 focus:ring-blue-400
3838
${isPulsing ? 'help-button-pulse' : ''}`}
3939
aria-label='Help'
4040
>

src/layouts/components/MainPage.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const MainPage: React.FC = () => {
2121
const [isWizardOpen, setIsWizardOpen] = useState(false);
2222
const [isShareModalOpen, setIsShareModalOpen] = useState(false);
2323

24-
2524
// Determine if email button should be disabled:
2625
const hasManagerEmail = managerEmail && managerEmail.trim().length > 0;
2726
// Include all public statements (including archived ones)
@@ -44,7 +43,7 @@ const MainPage: React.FC = () => {
4443
<div className='flex flex-col md:flex-row md:justify-between md:items-center'>
4544
<h1
4645
id='page-title'
47-
className='text-2xl md:text-3xl font-bold mb-3 md:mb-0 truncate'
46+
className='text-2xl md:text-3xl font-bold mb-3 md:mb-0 break-words'
4847
>
4948
{managerName
5049
? `${username} would like to share with ${managerName}`
@@ -64,7 +63,7 @@ const MainPage: React.FC = () => {
6463
<Footer />
6564

6665
{/* Floating Email Button */}
67-
<div className='fixed bottom-8 right-8 z-30'>
66+
<div className='fixed bottom-4 right-4 z-30'>
6867
{/* Email Button: Disabled if there's no manager email or no public statements */}
6968
<Tooltip>
7069
<TooltipTrigger asChild>

0 commit comments

Comments
 (0)