-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
Redesign enterprise tile #35622
Redesign enterprise tile #35622
Changes from 1 commit
8e45ee0
4129205
c220883
ff7aab7
4f2bd8d
119baf6
9119c9f
632ff91
92fbf76
b4f848a
7bbf8dd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,20 @@ | |
<h4 class="fs-5 pt-2">{{ report.title }}</h4> | ||
</div> | ||
<div class="card-body pb-1"> | ||
<div class="js-total fw-bold fs-1"> | ||
<i class="fa fa-spin fa-spinner"></i> | ||
<div class="row justify-content-center"> | ||
<div class="col-auto align-items-center position-relative"> | ||
<div class="js-total fw-bold fs-1"> | ||
<i class="fa fa-spin fa-spinner"></i> | ||
</div> | ||
{% if report.total_description %} | ||
<div class="position-absolute start-100" style="top: 25%"> | ||
<span class="hq-help-template" data-content="{{ report.total_description }}" data-placement="right"> | ||
<i class="fa fa-info-circle"></i> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What would you think of putting the icon next to the header text instead of the number? It's more secondary/tertiary information than primary information. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I feel putting the icon next to the header text implies this description is to explain the header text, not the stat there anymore. But maybe I can move the icon to next to the header text, and then in the tooltip, I included a description of the stat, also a description of the report they will get. I'll bring it up with saas-product. Thank you!
jingcheng16 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</span> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
<div class="fs-5 ">{{ report.total_description }}</div> | ||
</div> | ||
<div class="card-footer bg-transparent border-0 pt-0"> | ||
<div class="pb-2"> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
top: 25%
style could be atop-25
class, right?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bootstrap only have
top-0
,top-50
andtop-100
, so I have to use style: https://getbootstrap.com/docs/5.0/utilities/position/#arrange-elementsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aha, got it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can override the sass map to include
top-25
https://getbootstrap.com/docs/5.3/utilities/position/#sass-maps
also i would prefer
end-0
instead ofstart-100
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
override in 9119c9f
start-100
put the left edge of the element at the right edge of the parent elementend-0
put the right edge of the element at the left edge of the parent elementSo they're not exchangeable...