Show blockchain logo

This commit is contained in:
liangping 2024-06-01 14:45:23 +08:00
parent 036df51d6e
commit c935c6eb69
2 changed files with 4 additions and 4 deletions

View File

@ -60,12 +60,12 @@ onMounted(() => {
});
</script>
<template>
<div>
<div class="flex md:!flex-row flex-col items-center justify-center mb-6 mt-14 gap-2">
<div class="w-16 rounded-full">
<div class="flex flex-col items-center justify-center mb-6 mt-14 gap-4">
<img v-if="chainStore.current?.logo" :src="`${chainStore.current?.logo}`" class="w-16 rounded-md" />
<div v-else class="w-16 rounded-full">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150.000000 132.000000"
preserveAspectRatio="xMidYMid meet">
<g transform="translate(0.000000,132.000000) scale(0.100000,-0.100000)" fill="#666CFF" class=""

View File

@ -185,7 +185,7 @@ export function fromLocal(lc: LocalConfig): ChainConfig {
}
}
conf.features = lc.features
conf.logo = lc.logo;
conf.logo = lc.logo.startsWith('http') ? lc.logo : `https://ping.pub${lc.logo}`;
conf.keplrFeatures = lc.keplr_features;
conf.keplrPriceStep = lc.keplr_price_step;
conf.themeColor = lc.theme_color;