[frontend]: Fix favourite button causing linebreaks

This commit is contained in:
2025-03-14 21:27:21 +00:00
parent 41b8b2d040
commit 98ad2f19ed
6 changed files with 13 additions and 13 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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>

View File

@ -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>

View File

@ -85,7 +85,7 @@ button:focus-visible {
} }
h3 { h3 {
font-size: 1.4em; font-size: 1.3em;
font-weight: bold; font-weight: bold;
} }