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