Skip to content

Commit

Permalink
style(alert): float the icon to the start (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang authored Jan 14, 2024
1 parent ce8ace1 commit 0054951
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/bootstrap/alert-icon.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- $icon := partial "bootstrap/functions/alert-icon" . }}
<div class="flex-shrink-0">
<div class="float-start">
{{ partial "icons/icon" (dict "vendor" "bootstrap" "name" $icon "className" "alert-icon me-2") . }}
</div>
2 changes: 1 addition & 1 deletion layouts/partials/bootstrap/alert.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{{- else }}
{{- with .Get 0 }}{{ $style = . }}{{ end }}
{{- end }}
<div class="alert alert-{{ $style }} d-flex" role="alert">
<div class="alert alert-{{ $style }} clearfix" role="alert">
{{/* Output the icon if heading doesn't present. */}}
{{- if not (findRE `alert-heading` .Inner) }}
{{ partial "bootstrap/alert-icon" $style }}
Expand Down

0 comments on commit 0054951

Please sign in to comment.