We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2762f48 commit 30094ecCopy full SHA for 30094ec
portfolio/src/components/ThemeToggle.tsx
@@ -1,6 +1,5 @@
1
'use client';
2
3
-// src/components/ThemeToggle.tsx
4
import React from 'react';
5
import { Sun, Moon } from 'lucide-react';
6
import { useTheme } from '../context/ThemeContext';
@@ -11,9 +10,9 @@ const ThemeToggle: React.FC = () => {
11
10
return (
12
<button
13
onClick={toggleTheme}
14
- className="fixed top-4 right-4 p-2 border group transition-all duration-100
+ className="fixed top-2 right-2 md:top-4 md:right-4 p-2 border group transition-all duration-100
15
dark:border-white dark:hover:bg-white dark:hover:text-black
16
- border-black hover:bg-black hover:text-white"
+ border-black hover:bg-black hover:text-white z-50"
17
>
18
{theme === 'dark' ? (
19
<div className="relative">
0 commit comments