Skip to content

Commit

Permalink
fix: coin icon not displaying on ff extension
Browse files Browse the repository at this point in the history
  • Loading branch information
peronczyk committed Mar 19, 2024
1 parent 0915c25 commit f3ba13c
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 35 deletions.
1 change: 1 addition & 0 deletions src/popup/components/AssetIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export default defineComponent({
display: inline-block;
flex-grow: 0;
flex-shrink: 0;
width: var(--icon-size);
height: var(--icon-size);
border-radius: 50%;
Expand Down
15 changes: 6 additions & 9 deletions src/popup/components/Assets/DetailsRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
{{ label }}
</slot>
</div>
<span class="text">

<div class="text">
<slot name="text">
{{ text }}
</slot>
</span>
</div>
</div>
</template>

Expand All @@ -24,14 +25,14 @@ export default {

<style lang="scss" scoped>
@use '../../../styles/variables';
@use '../../../styles/mixins';
@use '../../../styles/typography';
.details-row {
@include mixins.flex(space-between, center);
@extend %face-sans-15-medium;
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px var(--screen-padding-x);
.title {
Expand All @@ -44,9 +45,5 @@ export default {
.text {
color: rgba(variables.$color-white, 0.75);
}
.white {
color: variables.$color-white;
}
}
</style>
24 changes: 8 additions & 16 deletions src/popup/components/Tokens.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,35 +112,27 @@ export default defineComponent({
.tokens {
@extend %face-sans-16-semi-bold;
display: inline-flex;
align-items: center;
color: rgba(variables.$color-white, 0.75);
letter-spacing: -2%;
&.bright {
color: variables.$color-white;
}
&,
.symbols,
.icon {
display: inline-flex;
align-items: center;
align-self: center;
}
.icon {
user-select: none;
width: max-content;
vertical-align: middle;
margin-right: 4px;
}
.symbol {
@extend %face-sans-16-regular;
.symbols {
.symbol {
@extend %face-sans-16-regular;
vertical-align: middle;
white-space: nowrap;
line-height: 20px;
letter-spacing: -0.02em;
white-space: nowrap;
letter-spacing: -0.02em;
}
}
.separator {
Expand Down
6 changes: 3 additions & 3 deletions src/popup/pages/Assets/AssetDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -434,16 +434,16 @@ export default defineComponent({
}
.top {
display: flex;
flex-direction: column;
text-align: center;
}
.token-amount {
@extend %face-sans-22-medium;
padding-top: 10px;
margin-top: 10px;
margin-bottom: 20px;
display: block;
text-align: center;
}
.token-actions {
Expand Down
8 changes: 1 addition & 7 deletions src/popup/pages/Assets/AssetDetailsInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
v-if="tokens"
class="token-details-tokens"
:tokens="tokens"
bright
/>
</template>
</DetailsRow>
Expand Down Expand Up @@ -268,7 +269,6 @@ export default defineComponent({
</script>
<style lang="scss" scoped>
@use '../../../styles/typography';
@use '../../../styles/variables';
.token-details {
Expand Down Expand Up @@ -305,11 +305,5 @@ export default defineComponent({
color: variables.$color-white;
}
}
.token-details-tokens {
@extend %face-sans-15-medium;
color: variables.$color-white;
}
}
</style>

0 comments on commit f3ba13c

Please sign in to comment.