Selaa lähdekoodia

fix(widget): always right align dates in Experience widget

Dates in the experience widget don't currently right align if the location string is longer than the date string. This changes the widget so the dates are always right aligned.

See #858
Ian Eve Perry 6 vuotta sitten
vanhempi
commit
628d09d791
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      layouts/partials/widgets/experience.html

+ 1 - 1
layouts/partials/widgets/experience.html

@@ -33,7 +33,7 @@
         <div class="card">
         <div class="card">
           <div class="card-body">
           <div class="card-body">
             <div class="float-right text-muted exp-meta">
             <div class="float-right text-muted exp-meta">
-              <div>
+              <div class="text-right">
                 {{ (time .date_start).Format ($page.Params.date_format | default "January 2006") }} –
                 {{ (time .date_start).Format ($page.Params.date_format | default "January 2006") }} –
                 {{ if .date_end}}
                 {{ if .date_end}}
                   {{ (time .date_end).Format ($page.Params.date_format | default "January 2006") }}
                   {{ (time .date_end).Format ($page.Params.date_format | default "January 2006") }}