Skip to content

Commit

Permalink
minor #2190 [Site] Fix tooltips positioning on FileTree component (Ko…
Browse files Browse the repository at this point in the history
…cal)

This PR was merged into the 2.x branch.

Discussion
----------

[Site] Fix tooltips positioning  on FileTree component

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Issues        | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT

**Before:**

https://github.com/user-attachments/assets/1047b942-fecd-4763-a48d-444edf5b8701

**After:**

https://github.com/user-attachments/assets/2040a645-6a1b-47e6-9263-000724911c76

Commits
-------

8a28319 [Site] Fix tooltips positioning  on FileTree component
  • Loading branch information
Kocal committed Sep 20, 2024
2 parents 5351778 + 8a28319 commit 4705d03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ux.symfony.com/assets/styles/components/_FileTree.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}

.FileTree li > span {
display: flex;
display: inline-flex;
flex-direction: row;
align-items: center;
gap: .75rem;
Expand Down
2 changes: 1 addition & 1 deletion ux.symfony.com/templates/main/_file_tree.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% macro summaryAttributes(description) %}
{% if description %}
data-bs-toggle="tooltip" data-bs-html="true" data-bs-placement="auto" title="{{ description|e('html_attr') }}"
data-bs-toggle="tooltip" data-bs-html="true" data-bs-placement="right" title="{{ description|e('html_attr') }}"
{% endif %}
{% endmacro %}

Expand Down

0 comments on commit 4705d03

Please sign in to comment.