Skip to content

Commit adf46f5

Browse files
committed
Improve providers popup
1 parent c16a1d5 commit adf46f5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/views/Providers.svelte

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,17 @@
8484
}
8585
8686
function naming(item: Types.Provider) {
87+
8788
const words = item.attributes.name
8889
.replace('.', '/')
8990
.match(/\b(\w)|([A-Z])|(\/)/g);
9091
const initials = getPredefinedInitials(
9192
item.id,
9293
words.slice(0, 3).join('').toUpperCase()
9394
);
94-
const logos = ['COD', 'MP', 'MPDS', 'NMD', 'OPT', 'TCO'];
95+
96+
const logos = ['COD', 'MP', 'MPDS', 'NMD', 'OPT', 'TCO', '2DM'];
97+
9598
item.attributes.img = `/assets/providers/${
9699
logos.includes(initials) ? initials : 'mcloud'
97100
}.png`;
@@ -144,6 +147,8 @@
144147
cursor: pointer;
145148
}
146149
.provider-logo {
147-
max-width: 100%;
150+
max-width: 75%;
151+
display: block;
152+
margin: 0 auto 1em;
148153
}
149154
</style>

0 commit comments

Comments
 (0)