Skip to content

Commit

Permalink
[explorer] fix: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyLaw committed Jan 8, 2025
1 parent a27cb11 commit 65a0630
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/components/fields/MessageField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,44 +90,44 @@ export default {
},
getMessage () {
if (this.isViewAsUTF8) {
return this.convertToUtf8(this.value.payload);
}
return this.value.payload;
return this.convertToUtf8(this.value.payload);
}
return this.value.payload;
},
convertToUtf8 (payload) {
if (this.isHexString) {
const hexToUint8 = Convert.hexToUint8(payload);
return new TextDecoder('utf-8').decode(hexToUint8);
}
return payload;
const hexToUint8 = Convert.hexToUint8(payload);
return new TextDecoder('utf-8').decode(hexToUint8);
}
return payload;
}
}
};
</script>

<style lang="scss" scoped>
.hideContent {
display: none;
display: none;
}
.overlay {
text-align: center;
position: absolute;
color: var(--clickable-text);
z-index: 999;
text-align: center;
position: absolute;
color: var(--clickable-text);
z-index: 999;
:hover > & {
cursor: pointer;
text-decoration: underline;
}
:hover > & {
cursor: pointer;
text-decoration: underline;
}
}
.viewOptions {
display: flex;
justify-content: center;
margin-top: 10px;
max-width: 150px;
width: 100%;
width: 100%;
border-radius: 5px;
border-width: 1px;
border-style: solid;
Expand All @@ -137,9 +137,9 @@ export default {
color: var(--clickable-text);
:hover > & {
cursor: pointer;
text-decoration: underline;
}
cursor: pointer;
text-decoration: underline;
}
}
</style>

0 comments on commit 65a0630

Please sign in to comment.