Skip to content

Commit

Permalink
More consistent across screen sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
espeon committed Nov 4, 2024
1 parent 55a4e89 commit dec7da4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,11 @@ const App: React.FC = () => {
<div className="w-full pt-2">
<ScrollingText
text={songData.track_name}
className="drop-shadow-lg text-2xl"
className="drop-shadow-lg text-2xl lg:text-4xl xl:text-5xl"
/>
<ScrollingText
text={songData.artist}
className="text-2xl"
className="text-2xl lg:text-4xl xl:text-5xl"
/>
</div>
)}
Expand All @@ -205,21 +205,21 @@ const App: React.FC = () => {
<>
<ScrollingText
text={songData.track_name}
className="drop-shadow-lg text-4xl"
className="drop-shadow-lg text-4xl lg:text-6xl xl:text-7xl"
/>
{songData.album !== songData.track_name ? (
<>
<ScrollingText
text={songData.artist}
className="text-3xl"
className="text-3xl lg:text-5xl xl:text-6xl"
/>
<ScrollingText
text={songData.album}
className="text-3xl"
className="text-3xl lg:text-5xl xl:text-6xl"
/>
</>
) : (
<ScrollingText text={songData.artist} className="text-3xl" />
<ScrollingText text={songData.artist} className="text-3xl lg:text-5xl xl:text-6xl" />
)}
<div className="text-xl font-mono flex">
{s2t(trackProgress.currentTime)}
Expand Down
2 changes: 1 addition & 1 deletion src/components/basicLyrics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function BasicLyrics({
return (
<div
key={String(i) + line.text}
className={`w-max max-w-full text-wrap transition-transform bg-transparent duration-0 mb-2 md:mb-4 lg:mb-8 py-2 text-left origin-left text-3xl md:text-4xl lg:text-5xl xl:text-6xl ${
className={`w-max max-w-full text-wrap transition-transform bg-transparent duration-0 mb-2 md:mb-4 lg:mb-10 xl:mb-12 py-2 text-left origin-left text-3xl md:text-4xl lg:text-6xl xl:text-7xl ${
segStatus.isActive ? "scale-100" : "scale-90"
}`}
// style={styles}
Expand Down
1 change: 1 addition & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ button {
:base,
* {
@apply transition-all duration-300 mix-blend-color;
font-optical-sizing: none;
}

0 comments on commit dec7da4

Please sign in to comment.