mirror of
https://github.com/pretix/pretix.git
synced 2026-05-21 17:54:08 +00:00
make icon optional in textblob
This commit is contained in:
@@ -30,7 +30,7 @@ def textblob(type, *args, **kwargs):
|
||||
return format_html(
|
||||
'<span class="text-blob-{}">{}',
|
||||
type or "info",
|
||||
"" if not kwargs["icon"] else format_html(
|
||||
"" if "icon" not in kwargs else format_html(
|
||||
'<i class="fa fa-{}" aria-hidden="true"></i> ',
|
||||
kwargs["icon"]
|
||||
)
|
||||
|
||||
@@ -532,13 +532,13 @@ h2 .label {
|
||||
|
||||
|
||||
.text-blob-success, .text-blob-info, .text-blob-warning, .text-blob-danger {
|
||||
padding: 0 .5em;
|
||||
padding: 0 .4em;
|
||||
border-radius: $border-radius-base;
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
|
||||
&:has(>.fa:first-child) {
|
||||
padding-left: .3em;
|
||||
padding-left: .25em;
|
||||
}
|
||||
}
|
||||
.text-blob-success {
|
||||
|
||||
Reference in New Issue
Block a user