Skip to content

Commit a272999

Browse files
authored
Merge pull request #42 from vittoriobusatta/main
fix(css): remove redundant CSS classes
2 parents c80f15b + 592ed1e commit a272999

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/pizzaz-albums/FilmStrip.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function FilmStrip({ album, selectedIndex, onSelect }) {
99
type="button"
1010
onClick={() => onSelect?.(idx)}
1111
className={
12-
"block w-full p-[1px] pointer-events-auto rounded-[10px] cursor-pointer border transition-colors transition-opacity " +
12+
"block w-full p-[1px] pointer-events-auto rounded-[10px] cursor-pointer border transition-[colors,opacity] " +
1313
(idx === selectedIndex
1414
? "border-black"
1515
: "border-black/0 hover:border-black/30 opacity-60 hover:opacity-100")

src/pizzaz-albums/FullscreenViewer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function FullscreenViewer({ album }) {
2626
<FilmStrip album={album} selectedIndex={index} onSelect={setIndex} />
2727
</div>
2828
{/* Main photo */}
29-
<div className="flex-1 min-w-0 px-40 py-10 relative flex items-center justify-center flex-auto">
29+
<div className="flex-1 min-w-0 px-40 py-10 relative flex items-center justify-center">
3030
<div className="relative w-full h-full">
3131
{photo ? (
3232
<img

src/pizzaz-carousel/PlaceCard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function PlaceCard({ place }) {
1212
className="w-full aspect-square rounded-2xl object-cover ring ring-black/5 shadow-[0px_2px_6px_rgba(0,0,0,0.06)]"
1313
/>
1414
</div>
15-
<div className="mt-3 flex flex-col flex-1 flex-auto">
15+
<div className="mt-3 flex flex-col flex-1">
1616
<div className="text-base font-medium truncate line-clamp-1">{place.name}</div>
1717
<div className="text-xs mt-1 text-black/60 flex items-center gap-1">
1818
<Star className="h-3 w-3" aria-hidden="true" />

src/pizzaz/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export default function App() {
242242
>
243243
<div
244244
ref={mapRef}
245-
className="w-full h-full relative absolute bottom-0 left-0 right-0"
245+
className="w-full h-full absolute bottom-0 left-0 right-0"
246246
style={{
247247
maxHeight,
248248
height: displayMode === "fullscreen" ? maxHeight : undefined,

0 commit comments

Comments
 (0)