Skip to content

Commit 35e1947

Browse files
author
Hofstetter Benjamin
committed
provide svg icons for terms
1 parent 279fcc3 commit 35e1947

File tree

16 files changed

+265
-3
lines changed

16 files changed

+265
-3
lines changed

opendata.swiss/ui/app/components/content/OdsTerms.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ const termsName = computed(() => {
4242
4343
});
4444
45-
const imageSrc = computed(() => `/img/terms-of-use/terms_${termsName.value}.png`);
45+
const imageSrc = computed(() => `/img/terms-of-use/terms_${termsName.value}.svg`);
46+
4647
</script>
4748

4849
<style lang="scss" scoped>

opendata.swiss/ui/app/components/dataset-detail/OdsDetailTermsOfUse.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<img
55
:src="imageSrc"
66
:alt="t(`message.terms_of_use.ods_${termsName}.title`)"
7-
:title="t(`message.terms_of_use.ods_${termsName}.title`)">
7+
:title="t(`message.terms_of_use.ods_${termsName}.title`)"
8+
class="ods-terms-of-use_image">
89
</div>
910

1011
<ul>
@@ -44,7 +45,8 @@ const termsName = computed(() => {
4445
4546
});
4647
47-
const imageSrc = computed(() => `/img/terms-of-use/terms_${termsName.value}.png`);
48+
const imageSrc = computed(() => `/img/terms-of-use/terms_${termsName.value}.svg`);
49+
4850
</script>
4951

5052
<style lang="scss" scoped>
@@ -72,4 +74,8 @@ li {
7274
margin-bottom: 0;
7375
margin-top: 44px !important;
7476
}
77+
78+
.ods-terms-of-use_image {
79+
height: 156px;
80+
}
7581
</style>
8.05 KB
Loading
File renamed without changes.
File renamed without changes.
3.76 KB
Loading
53.7 KB
Binary file not shown.
51.8 KB
Binary file not shown.
48.3 KB
Binary file not shown.
37.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)