Use smaller font size.

This commit is contained in:
liangping 2022-08-25 10:33:36 +08:00
parent 1082d56251
commit 1ccba957a0
3 changed files with 49 additions and 27 deletions

View File

@ -2,9 +2,9 @@
<b-card no-body> <b-card no-body>
<b-card-body class="d-flex justify-content-between align-items-center"> <b-card-body class="d-flex justify-content-between align-items-center">
<div class="truncate"> <div class="truncate">
<h2 class="mb-25 font-weight-bolder"> <h4 class="mb-25 font-weight-bolder">
{{ statistic }} {{ statistic }}
</h2> </h4>
<span>{{ statisticTitle }}</span> <span>{{ statisticTitle }}</span>
</div> </div>
<b-avatar <b-avatar

View File

@ -11,9 +11,9 @@
/> />
</b-avatar> </b-avatar>
<div class="truncate"> <div class="truncate">
<h2 class="mb-25 font-weight-bolder"> <h4 class="mb-25 font-weight-bolder">
{{ statistic }} {{ statistic }}
</h2> </h4>
<span>{{ statisticTitle }}</span> <span>{{ statisticTitle }}</span>
</div> </div>
</b-card> </b-card>

View File

@ -36,30 +36,38 @@
text="Pairs" text="Pairs"
:variant="color" :variant="color"
> >
<b-dropdown-item <vue-perfect-scrollbar
v-for="(pair, i) in tickers" :settings="settings"
:key="i" class="pair-scroll-area"
@click="selectPair(pair)"
> >
<b-row style="width:400px;"> <b-dropdown-item
<b-col cols="4"> v-for="(pair, i) in tickers"
{{ pair.market.name }} :key="i"
</b-col> @click="selectPair(pair)"
<b-col >
cols="4" <b-row style="width:400px;">
class="text-uppercase text-truncate" <b-col
> cols="4"
{{ coinInfo.symbol }}/{{ pair.target }} class="text-truncate"
</b-col> >
<b-col {{ pair.market.name }}
cols="4" </b-col>
class="font-weight-bold" <b-col
:class="`text-${colorMap(pair.trust_score)}`" cols="4"
> class="text-uppercase text-truncate"
${{ pair.converted_last.usd }} >
</b-col> {{ coinInfo.symbol }}/{{ pair.target }}
</b-row> </b-col>
</b-dropdown-item> <b-col
cols="4"
class="font-weight-bold"
:class="`text-${colorMap(pair.trust_score)}`"
>
${{ pair.converted_last.usd }}
</b-col>
</b-row>
</b-dropdown-item>
</vue-perfect-scrollbar>
</b-dropdown> </b-dropdown>
<div class="text-truncate ml-1"> <div class="text-truncate ml-1">
<sup class="text-body"> <sup class="text-body">
@ -199,6 +207,7 @@ import {
} from 'bootstrap-vue' } from 'bootstrap-vue'
import VueApexCharts from 'vue-apexcharts' import VueApexCharts from 'vue-apexcharts'
import { $themeColors } from '@themeConfig' import { $themeColors } from '@themeConfig'
import VuePerfectScrollbar from 'vue-perfect-scrollbar'
import FeatherIcon from '../../../@core/components/feather-icon/FeatherIcon.vue' import FeatherIcon from '../../../@core/components/feather-icon/FeatherIcon.vue'
export default { export default {
@ -219,12 +228,16 @@ export default {
BDropdown, BDropdown,
BDropdownItem, BDropdownItem,
FeatherIcon, FeatherIcon,
VuePerfectScrollbar,
}, },
directives: { directives: {
'b-tooltip': VBTooltip, 'b-tooltip': VBTooltip,
}, },
data() { data() {
return { return {
settings: {
maxScrollbarLength: 60,
},
colors: { colors: {
green: 'success', green: 'success',
yellow: 'warning', yellow: 'warning',
@ -390,3 +403,12 @@ export default {
}, },
} }
</script> </script>
<style lang="scss">
.pair-scroll-area {
position: relative;
margin: auto;
/* width: 400px; //*/
max-height: 300px;
}
</style>