diff --git a/src/components/tag-history/tag-history.riot b/src/components/tag-history/tag-history.riot index 99c04dbc..40429713 100644 --- a/src/components/tag-history/tag-history.riot +++ b/src/components/tag-history/tag-history.riot @@ -253,8 +253,14 @@ along with this program. If not, see . 'author', 'id', 'ExposedPorts', + 'name', + 'appVersion', + 'kubeVersion', + 'keywords', + 'home', + 'sources' ].reduce(function (acc, e) { - const value = blobs[e] || blobs.config[e]; + const value = blobs[e] || (blobs.config && blobs.config[e]); if (value && e === 'architecture' && blobs.variant) { acc[e] = value + blobs.variant; } else if (value) { diff --git a/src/fonts/material-symbols-rounded.ttf b/src/fonts/material-symbols-rounded.ttf new file mode 100644 index 00000000..459df522 Binary files /dev/null and b/src/fonts/material-symbols-rounded.ttf differ diff --git a/src/fonts/material-symbols-rounded.woff b/src/fonts/material-symbols-rounded.woff new file mode 100644 index 00000000..fd3b1ebc Binary files /dev/null and b/src/fonts/material-symbols-rounded.woff differ diff --git a/src/fonts/material-symbols-rounded.woff2 b/src/fonts/material-symbols-rounded.woff2 new file mode 100644 index 00000000..25a261bd Binary files /dev/null and b/src/fonts/material-symbols-rounded.woff2 differ diff --git a/src/material-icons.scss b/src/material-symbols.scss similarity index 65% rename from src/material-icons.scss rename to src/material-symbols.scss index e0fb541e..b1470011 100644 --- a/src/material-icons.scss +++ b/src/material-symbols.scss @@ -1,20 +1,18 @@ @font-face { - font-family: 'Material Icons'; + font-family: 'Material Symbols Rounded'; font-style: normal; font-weight: 400; - src: url(fonts/MaterialIcons-Regular.eot); /* For IE6-8 */ - src: local('Material Icons'), - local('MaterialIcons-Regular'), - url(fonts/MaterialIcons-Regular.woff2) format('woff2'), - url(fonts/MaterialIcons-Regular.woff) format('woff'), - url(fonts/MaterialIcons-Regular.ttf) format('truetype'); + src: local('Material Symbols Rounded'), + url(fonts/material-symbols-rounded.woff2) format('woff2'), + url(fonts/material-symbols-rounded.woff) format('woff'), + url(fonts/material-symbols-rounded.ttf) format('truetype'); } material-button .content i.material-icons, material-button[rounded=true] .content i.material-icons, i.material-icons { - font-family: 'Material Icons'; + font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 24px; /* Preferred icon size */ @@ -38,6 +36,12 @@ i.material-icons { /* Support for IE. */ font-feature-settings: 'liga'; + + user-select: none; + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -o-user-select: none; } material-button .content i.material-icons, diff --git a/src/scripts/utils.js b/src/scripts/utils.js index 924c8aef..cff17c9f 100644 --- a/src/scripts/utils.js +++ b/src/scripts/utils.js @@ -82,6 +82,17 @@ export function getHistoryIcon(attribute) { return 'router'; case 'comment': return 'chat'; + case 'home': + return 'home'; + case 'sources': + return 'link'; + case 'keywords': + return 'receipt'; + case 'name': + return 'abc'; + case 'kubeVersion': + case 'appVersion': + return '123'; default: if (attribute.startsWith('custom-label-')) { return 'label'; diff --git a/src/style.scss b/src/style.scss index 01900168..4c1300ff 100644 --- a/src/style.scss +++ b/src/style.scss @@ -29,7 +29,7 @@ @import 'riot-mui/src/material-elements/material-switch/material-switch.scss'; @import './roboto.scss'; -@import './material-icons.scss'; +@import './material-symbols.scss'; html > body { font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif !important;