fix tooltips in combination w/ overflow tables
This commit is contained in:
parent
e96474e085
commit
be4ec4cbdc
@ -53,12 +53,12 @@ async fn highscore(State(db): State<Arc<SqlitePool>>, session: Session) -> Marku
|
||||
@if let Some(rating) = Rating::find_by_team_and_station(&db, &team, &station).await {
|
||||
@if let (Some(notes), Some(points)) = (rating.notes, rating.points) {
|
||||
({total_points += points;""})
|
||||
em data-tooltip=(notes) { (points) }
|
||||
em data-placement="bottom" data-tooltip=(notes) { (points) }
|
||||
}@else if let Some(points) = rating.points {
|
||||
({total_points += points;""})
|
||||
(points)
|
||||
}@else {
|
||||
em data-tooltip="Station hat Team noch nicht bewertet" {
|
||||
em data-placement="bottom" data-tooltip="Station hat Team noch nicht bewertet" {
|
||||
"?"
|
||||
}
|
||||
}
|
||||
|
@ -183,17 +183,17 @@ async fn view(
|
||||
th { "Punkte" }
|
||||
th { "Notizen" }
|
||||
th {
|
||||
em data-tooltip="Angekommen" {
|
||||
em data-placement="bottom" data-tooltip="Angekommen" {
|
||||
"👋"
|
||||
}
|
||||
}
|
||||
th {
|
||||
em data-tooltip="Begonnen" {
|
||||
em data-placement="bottom" data-tooltip="Begonnen" {
|
||||
"🎬"
|
||||
}
|
||||
}
|
||||
th {
|
||||
em data-tooltip="Gegangen" {
|
||||
em data-placement="bottom" data-tooltip="Gegangen" {
|
||||
"🚶♂️"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user