Skip to content

Commit

Permalink
Tooltips with 100% opacity + card tooltip wrapped around hero name
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajordat committed May 31, 2024
1 parent 6ff2b90 commit 81f807a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions alteredbuilder/decks/static/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@
.tooltip-inner {
max-width: 300px;
}

.tooltip.show {
opacity: 1;
}
2 changes: 1 addition & 1 deletion alteredbuilder/decks/templates/decks/deck_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ <h3>{% translate "My decks" %}</h3>
<td>{{ deck.name }}</td>
{% if deck.hero %}
<td>{{ deck.hero.get_faction_display.title }}</td>
<td data-bs-toggle="tooltip" data-bs-title="<img src='{{ deck.hero.image_url }}'/>" data-bs-html="true" data-bs-placement="right">{{ deck.hero.name }}</td>
<td><span class="d-inline-block" data-bs-toggle="tooltip" data-bs-title="<img src='{{ deck.hero.image_url }}'/>" data-bs-html="true" data-bs-placement="right">{{ deck.hero.name }}</span></td>
{% else %}
<td>-</td><td>-</td>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion alteredbuilder/decks/templates/decks/own_deck_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h3>{% translate "My decks" %}</h3>
<td>{{ deck.name }}</td>
{% if deck.hero %}
<td>{{ deck.hero.get_faction_display.title }}</td>
<td data-bs-toggle="tooltip" data-bs-title="<img src='{{ deck.hero.image_url }}'/>" data-bs-html="true" data-bs-placement="right">{{ deck.hero.name }}</td>
<td><span class="d-inline-block" data-bs-toggle="tooltip" data-bs-title="<img src='{{ deck.hero.image_url }}'/>" data-bs-html="true" data-bs-placement="right">{{ deck.hero.name }}</span></td>
{% else %}
<td>-</td><td>-</td>
{% endif %}
Expand Down

0 comments on commit 81f807a

Please sign in to comment.