nodebb-theme-persona 15.2.1 → 15.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "15.2.1",
3
+ "version": "15.2.2",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.15.0"
6
6
  },
@@ -15,19 +15,19 @@
15
15
  <div class="" data-name="{./name}">
16
16
  <div class="card h-100">
17
17
  <div class="card-body d-flex flex-column justify-content-between">
18
- <div class="mb-2 text-center d-flex flex-column gap-2">
19
- <a class="text-sm" href="{config.relative_path}{./url}" target="_blank">
18
+ <div class="mb-2 text-center d-flex flex-column justify-content-center gap-2 flex-grow-1">
19
+ <a class="d-flex align-items-center justify-content-center text-sm" href="{config.relative_path}{./url}" target="_blank">
20
20
  {{{ if ./isImage}}}
21
- <img src="{config.relative_path}{./url}" class="img-fluid rounded mb-2" alt="{./name}" style="width:auto; max-width: 6.33rem; height: 6.0rem; object-fit: contain;">
21
+ <img src="{config.relative_path}{./url}" class="img-fluid rounded mb-2" alt="{./name}" style="width:auto; height: auto; max-height: 8rem; object-fit: contain;">
22
22
  {{{ else }}}
23
- <div class="mx-auto d-flex align-items-center justify-content-center" style="width:auto; max-width: 6.33rem; height: 6.0rem; object-fit: contain;">
23
+ <div class="d-flex align-items-center justify-content-center" style="width:auto; height: auto; max-height: 8rem; object-fit: contain;">
24
24
  <i class="fa-regular fa-file-lines fa-4x mb-2 text-secondary" ></i>
25
25
  </div>
26
26
  {{{ end }}}
27
27
  </a>
28
- <a class="text-xs text-break text-secondary" target="_blank" href="{config.relative_path}{./url}">{./name}</a>
28
+ <a class="text-xs text-break text-secondary text-center" target="_blank" href="{config.relative_path}{./url}">{./filename}</a>
29
29
  </div>
30
- <div class="d-flex justify-content-center">
30
+ <div class="d-flex flex-column gap-1 align-items-center">
31
31
  <button class="btn btn-ghost btn-sm" data-action="delete" aria-label="{{tx("aria:delete-upload-button")}}"><i class="fa fa-trash text-danger"></i> {{tx("uploads:delete-upload")}}</button>
32
32
  </div>
33
33
  </div>