[frontend]: Fix favourite button causing linebreaks
This commit is contained in:
@ -17,9 +17,9 @@ const BusPopup = ({ item, objectTitle, toggleFavourite, favourites }) => {
|
|||||||
<h3>{objectTitle}</h3>
|
<h3>{objectTitle}</h3>
|
||||||
<button
|
<button
|
||||||
onClick={handleToggleFavourite}
|
onClick={handleToggleFavourite}
|
||||||
style={{ background: "white", border: "none", fontSize: "20px", cursor: "pointer" }}
|
style={{background: "white", border: "none", fontSize: "1.1em", cursor: "pointer"}}
|
||||||
>
|
>
|
||||||
{isFavourite ? "⭐" : "☆"}
|
{isFavourite ? "⭐" : "✩"}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<ul>
|
<ul>
|
||||||
@ -33,4 +33,4 @@ const BusPopup = ({ item, objectTitle, toggleFavourite, favourites }) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default BusPopup;
|
export default BusPopup;
|
||||||
|
@ -17,9 +17,9 @@ const BusStopPopup = ({ item, objectTitle, toggleFavourite, favourites }) => {
|
|||||||
<h3>{objectTitle}</h3>
|
<h3>{objectTitle}</h3>
|
||||||
<button
|
<button
|
||||||
onClick={handleToggleFavourite}
|
onClick={handleToggleFavourite}
|
||||||
style={{ background: "white", border: "none", fontSize: "20px", cursor: "pointer" }}
|
style={{background: "white", border: "none", fontSize: "1.1em", cursor: "pointer"}}
|
||||||
>
|
>
|
||||||
{isFavourite ? "⭐" : "☆"}
|
{isFavourite ? "⭐" : "✩"}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<ul>
|
<ul>
|
||||||
@ -31,4 +31,4 @@ const BusStopPopup = ({ item, objectTitle, toggleFavourite, favourites }) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default BusStopPopup;
|
export default BusStopPopup;
|
||||||
|
@ -17,7 +17,7 @@ const IrishRailTrainPopup = ({ item, objectTitle, trainStatus, trainType, latene
|
|||||||
<h3>{objectTitle}</h3>
|
<h3>{objectTitle}</h3>
|
||||||
<button
|
<button
|
||||||
onClick={handleToggleFavourite}
|
onClick={handleToggleFavourite}
|
||||||
style={{ background: "white", border: "none", fontSize: "20px", cursor: "pointer" }}
|
style={{background: "white", border: "none", fontSize: "1.1em", cursor: "pointer"}}
|
||||||
>
|
>
|
||||||
{isFavourite ? "⭐" : "☆"}
|
{isFavourite ? "⭐" : "☆"}
|
||||||
</button>
|
</button>
|
||||||
@ -35,4 +35,4 @@ const IrishRailTrainPopup = ({ item, objectTitle, trainStatus, trainType, latene
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default IrishRailTrainPopup;
|
export default IrishRailTrainPopup;
|
||||||
|
@ -64,9 +64,9 @@ const LuasPopup = ({ item, objectTitle, luasLine, toggleFavourite, favourites })
|
|||||||
<h3>{objectTitle}</h3>
|
<h3>{objectTitle}</h3>
|
||||||
<button
|
<button
|
||||||
onClick={handleToggleFavourite}
|
onClick={handleToggleFavourite}
|
||||||
style={{background: "white", border: "none", fontSize: "20px", cursor: "pointer"}}
|
style={{background: "white", border: "none", fontSize: "1.1em", cursor: "pointer"}}
|
||||||
>
|
>
|
||||||
{isFavourite ? "⭐" : "☆"}
|
{isFavourite ? "⭐" : "✩"}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -73,9 +73,9 @@ const TrainStationPopup = ({ item, objectTitle, toggleFavourite, favourites }) =
|
|||||||
<h3>{objectTitle}</h3>
|
<h3>{objectTitle}</h3>
|
||||||
<button
|
<button
|
||||||
onClick={handleToggleFavourite}
|
onClick={handleToggleFavourite}
|
||||||
style={{background: "white", border: "none", fontSize: "20px", cursor: "pointer"}}
|
style={{background: "white", border: "none", fontSize: "1.1em", cursor: "pointer"}}
|
||||||
>
|
>
|
||||||
{isFavourite ? "⭐" : "☆"}
|
{isFavourite ? "⭐" : "✩"}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -85,7 +85,7 @@ button:focus-visible {
|
|||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: 1.4em;
|
font-size: 1.3em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user