Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/tooltip truncated #151

Merged
merged 2 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project tries to adhere to [Semantic Versioning](https://semver.org/spe

### Fixed
- 404 errors for missing MVTs
- truncated tooltips

## [1.0.0] - 2024-05-07
### Added
Expand Down
3 changes: 3 additions & 0 deletions digiplan/static/scss/base/_variable_overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,9 @@ $navbar-light-toggler-border-color: none;
// Tooltips

// scss-docs-start tooltip-variables
$tooltip-max-width: 32rem;
$tooltip-padding-y: 0.75rem;
$tooltip-padding-x: 0.75rem;
// scss-docs-end tooltip-variables

// Form tooltips must come after regular tooltips
Expand Down
16 changes: 8 additions & 8 deletions digiplan/templates/components/map.html
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ <h1 class="modal-title fs-5 fw-bold ps-1" id="appModalLabel">EmPowerPlan-Tool</h
<span class="scenario-feature__value scenario-feature__value--light">+</span>
</div>
<div class="scenario-feature__header--right">
<a href="#" data-bs-toggle="tooltip" data-bs-title="Hier folgen noch weitere Hintergrundinformationen">
<a href="#" data-bs-toggle="tooltip" data-bs-placement="left" data-bs-title="Hier folgen noch weitere Hintergrundinformationen">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#002E50" class="bi bi-info-circle" viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/>
<path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"/>
Expand Down Expand Up @@ -454,7 +454,7 @@ <h1 class="modal-title fs-5 fw-bold ps-1" id="appModalLabel">EmPowerPlan-Tool</h
<span class="scenario-feature__value scenario-feature__value--light">+</span>
</div>
<div class="scenario-feature__header--right">
<a href="#" data-bs-toggle="tooltip" data-bs-title="Hier folgen noch weitere Hintergrundinformationen">
<a href="#" data-bs-toggle="tooltip" data-bs-placement="left" data-bs-title="Hier folgen noch weitere Hintergrundinformationen">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#002E50" class="bi bi-info-circle" viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/>
<path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"/>
Expand Down Expand Up @@ -558,7 +558,7 @@ <h1 class="modal-title fs-5 fw-bold ps-1" id="appModalLabel">EmPowerPlan-Tool</h
<span class="scenario-feature__value scenario-feature__value--light">+</span>
</div>
<div class="scenario-feature__header--right">
<a href="#" data-bs-toggle="tooltip" data-bs-title="Hier folgen noch weitere Hintergrundinformationen">
<a href="#" data-bs-toggle="tooltip" data-bs-placement="left" data-bs-title="Hier folgen noch weitere Hintergrundinformationen">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#002E50" class="bi bi-info-circle" viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/>
<path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"/>
Expand Down Expand Up @@ -621,7 +621,7 @@ <h1 class="modal-title fs-5 fw-bold ps-1" id="appModalLabel">EmPowerPlan-Tool</h
<span class="scenario-feature__value scenario-feature__value--light">+</span>
</div>
<div class="scenario-feature__header--right">
<a href="#" data-bs-toggle="tooltip" data-bs-title="Hier folgen noch weitere Hintergrundinformationen">
<a href="#" data-bs-toggle="tooltip" data-bs-placement="left" data-bs-title="Hier folgen noch weitere Hintergrundinformationen">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#002E50" class="bi bi-info-circle" viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/>
<path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"/>
Expand Down Expand Up @@ -691,7 +691,7 @@ <h1 class="modal-title fs-5 fw-bold ps-1" id="appModalLabel">EmPowerPlan-Tool</h
<span class="scenario-feature__value scenario-feature__value--light">+</span>
</div>
<div class="scenario-feature__header--right">
<a href="#" data-bs-toggle="tooltip" data-bs-title="Hier folgen noch weitere Hintergrundinformationen">
<a href="#" data-bs-toggle="tooltip" data-bs-placement="left" data-bs-title="Hier folgen noch weitere Hintergrundinformationen">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#002E50" class="bi bi-info-circle" viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/>
<path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"/>
Expand Down Expand Up @@ -785,7 +785,7 @@ <h1 class="modal-title fs-5 fw-bold ps-1" id="appModalLabel">EmPowerPlan-Tool</h
<span class="scenario-feature__value scenario-feature__value--light">+</span>
</div>
<div class="scenario-feature__header--right">
<a href="#" data-bs-toggle="tooltip" data-bs-title="Hier folgen noch weitere Hintergrundinformationen">
<a href="#" data-bs-toggle="tooltip" data-bs-placement="left" data-bs-title="Hier folgen noch weitere Hintergrundinformationen">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#002E50" class="bi bi-info-circle" viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/>
<path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"/>
Expand Down Expand Up @@ -889,7 +889,7 @@ <h1 class="modal-title fs-5 fw-bold ps-1" id="appModalLabel">EmPowerPlan-Tool</h
<span class="scenario-feature__value scenario-feature__value--light">+</span>
</div>
<div class="scenario-feature__header--right">
<a href="#" data-bs-toggle="tooltip" data-bs-title="Hier folgen noch weitere Hintergrundinformationen">
<a href="#" data-bs-toggle="tooltip" data-bs-placement="left" data-bs-title="Hier folgen noch weitere Hintergrundinformationen">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#002E50" class="bi bi-info-circle" viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/>
<path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"/>
Expand Down Expand Up @@ -952,7 +952,7 @@ <h1 class="modal-title fs-5 fw-bold ps-1" id="appModalLabel">EmPowerPlan-Tool</h
<span class="scenario-feature__value scenario-feature__value--light">+</span>
</div>
<div class="scenario-feature__header--right">
<a href="#" data-bs-toggle="tooltip" data-bs-title="Hier folgen noch weitere Hintergrundinformationen">
<a href="#" data-bs-toggle="tooltip" data-bs-placement="left" data-bs-title="Hier folgen noch weitere Hintergrundinformationen">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#002E50" class="bi bi-info-circle" viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/>
<path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"/>
Expand Down
2 changes: 1 addition & 1 deletion digiplan/templates/components/panel_2_today.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h2 class="panel-item__heading panel-item__heading--nopadding">
<option value="batteries_capacity_statusquo" title="{% translate 'Kapazität Batteriespeicher' %}">{% translate "Kapazität Batteriespeicher" %}</option>
</optgroup>
</select>
<img src="{% static 'images/icons/i_info.svg' %}" id="info_tooltip" alt="Info Icon" class="i-icon" data-bs-toggle="tooltip" title="{% translate "Keine Auswahl" %}">
<img src="{% static 'images/icons/i_info.svg' %}" id="info_tooltip" alt="Info Icon" class="i-icon" data-bs-toggle="tooltip" data-bs-placement="right" title="{% translate "Keine Auswahl" %}">
</div>
</div>
<div class="panel-item">
Expand Down
2 changes: 1 addition & 1 deletion digiplan/templates/components/panel_5_results.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ <h2 class="panel-item__heading panel-item__heading--nopadding">
</option>
</optgroup>
</select>
<img src="{% static 'images/icons/i_info.svg' %}" alt="Info Icon" class="i-icon" data-bs-toggle="tooltip" id="info_tooltip_results" title="{% translate "Keine Auswahl" %}">
<img src="{% static 'images/icons/i_info.svg' %}" alt="Info Icon" class="i-icon" data-bs-toggle="tooltip" id="info_tooltip_results" data-bs-placement="right" title="{% translate "Keine Auswahl" %}">
</div>
<div id="result_simnote" class="panel__simnote"></div>
<div class="panel-item">
Expand Down
2 changes: 1 addition & 1 deletion digiplan/templates/widgets/info_button.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{% load static %}
<img src="{% static 'images/icons/i_info.svg' %}" alt="Info Icon" class="i-icon" data-bs-toggle="tooltip" title="{{description}}">
<img src="{% static 'images/icons/i_info.svg' %}" alt="Info Icon" class="i-icon" data-bs-toggle="tooltip" data-bs-placement="right" title="{{description}}">