Skip to content

Commit

Permalink
Merge pull request #3128 from superhero-com/fix/alignment-on-account-…
Browse files Browse the repository at this point in the history
…info

fix: alignment on AccountInfo
  • Loading branch information
martinkaintas authored Jun 26, 2024
2 parents 78b44c5 + 001b00e commit 24beba4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
10 changes: 7 additions & 3 deletions src/popup/components/AccountInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ import { getDefaultAccountLabel } from '@/utils';
import { ProtocolAdapterFactory } from '@/lib/ProtocolAdapterFactory';
import { useAeNames } from '@/protocols/aeternity/composables/aeNames';
import Avatar from './Avatar.vue';
import Avatar, { type AvatarSize } from './Avatar.vue';
import CopyText from './CopyText.vue';
import Truncate from './Truncate.vue';
import AddressTruncated from './AddressTruncated.vue';
Expand All @@ -84,7 +84,7 @@ export default defineComponent({
},
props: {
account: { type: Object as PropType<Partial<IAccount>>, required: true },
avatarSize: { type: String, default: 'lg' },
avatarSize: { type: String as PropType<AvatarSize>, default: 'lg' },
customName: { type: String, default: null },
canCopyAddress: Boolean,
isMultisig: Boolean,
Expand Down Expand Up @@ -133,13 +133,17 @@ export default defineComponent({
}
.account-details {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
gap: 4px;
max-width: 250px;
font-weight: 500;
.account-name {
@extend %face-sans-16-medium;
margin: 4px 0;
line-height: 20px; // Avoid cutting off bottom part of some letters, e.g.: "g"
}
Expand Down
1 change: 1 addition & 0 deletions src/popup/components/AddressTruncated.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<ProtocolIcon
v-if="showProtocolIcon"
:protocol="protocol"
icon-size="rg"
class="protocol-icon"
/>
<div class="address-truncated-chunks">
Expand Down
2 changes: 1 addition & 1 deletion src/popup/components/Avatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { isContract } from '@/protocols/aeternity/helpers';
import { useAeNetworkSettings } from '@/protocols/aeternity/composables';
const SIZES = ['xs', 'sm', 'rg', 'md', 'lg', 'xl'] as const;
type AvatarSize = typeof SIZES[number];
export type AvatarSize = typeof SIZES[number];
const VARIANTS = ['primary', 'grey'] as const;
type AvatarVariant = typeof VARIANTS[number];
Expand Down

0 comments on commit 24beba4

Please sign in to comment.