Skip to content

Commit 9a0cb28

Browse files
committed
feat(ui): put description of ui elements in tooltip
1 parent 78c4a6e commit 9a0cb28

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

assets/css/app.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,17 @@ html.is-disabled body {
194194
padding-top: 1.5rem !important;
195195
}
196196

197+
.uie-card .header {
198+
display: flex !important;
199+
justify-content: space-between;
200+
align-items: flex-start;
201+
gap: 10px;
202+
}
203+
204+
.uie-card .header .button {
205+
align-self: flex-start;
206+
}
207+
197208
.is-active .uie-heading {
198209
transform: rotate(90deg) translateY(-0.6rem) scale(0.7);
199210
transform-origin: left top 0;

src/Resources/public/css/rich-editor.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Resources/views/Admin/app.html.twig

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,14 @@
116116
<div class="ui link card uie-card js-uie-new">
117117
<div class="content left aligned">
118118
<div class="header">
119-
<i class="{{icon}} icon"></i>
120-
{{title}}
121-
</div>
122-
<div class="description">
119+
<div>
120+
<i class="{{icon}} icon"></i>
121+
{{title}}
122+
</div>
123123
{{#description}}
124-
{{description}}
124+
<div class="mini ui basic icon button" data-tooltip="{{description}}" data-inverted="" data-position="bottom center">
125+
<i class="question icon"></i>
126+
</div>
125127
{{/description}}
126128
</div>
127129
{{#wireframe}}

0 commit comments

Comments
 (0)