Skip to content

Commit 08b7abf

Browse files
author
Ari
committed
Fix broken LicenseIcons usage, update styling
1 parent 3d82ea7 commit 08b7abf

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/components/HelpSection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
</tr>
191191
<tr>
192192
<th>{{ $t('help.how-licenses-communicated.license-icons') }}</th>
193-
<td><LicenseIconography :icon-list="['', 'by', 'nc']" /></td>
193+
<td><LicenseIcons :icons-arr="['by', 'nc']" /></td>
194194
</tr>
195195
</tbody>
196196
</table>

src/components/LicenseIcons.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@
88
>
99
<img
1010
class="photo-license-icon"
11+
alt="CC icon"
12+
title="CC icon"
1113
src="../assets/license-icons/cc_icon.svg"
1214
>
1315
<img
1416
v-for="(license, index) in iconsArr"
1517
:key="index"
1618
class="photo-license-icon"
19+
:alt="license + ' icon'"
20+
:title="license + ' icon'"
1721
:src="require(`../assets/license-icons/cc-${license.toLowerCase()}_icon.svg`)"
1822
>
1923
</a>
@@ -34,7 +38,8 @@ export default LicenseIcons
3438
margin-right:3px;
3539
}
3640
.photo-license-icon {
37-
height: inherit;
38-
margin-left: 3px;
41+
height: 2rem;
42+
width: auto;
43+
margin-right: 3px;
3944
}
4045
</style>

0 commit comments

Comments
 (0)