summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-09-08 01:46:01 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-09-08 01:46:01 +0900
commit1c84c0828ef87ca70dfec1f57aee533b099098ea (patch)
tree266fff41b906a9b05830b8672347d34dbb7d77a0 /src
parent:art: (diff)
downloadmisskey-1c84c0828ef87ca70dfec1f57aee533b099098ea.tar.gz
misskey-1c84c0828ef87ca70dfec1f57aee533b099098ea.tar.bz2
misskey-1c84c0828ef87ca70dfec1f57aee533b099098ea.zip
良い感じに
Diffstat (limited to 'src')
-rw-r--r--src/client/app/common/views/components/tag-cloud.vue7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/client/app/common/views/components/tag-cloud.vue b/src/client/app/common/views/components/tag-cloud.vue
index 6eb82bb711..5f2cc5276a 100644
--- a/src/client/app/common/views/components/tag-cloud.vue
+++ b/src/client/app/common/views/components/tag-cloud.vue
@@ -4,10 +4,9 @@
<p class="empty" v-else-if="tags.length == 0">%fa:exclamation-circle%%i18n:@empty%</p>
<div v-else>
<vue-word-cloud
- :words="tags.map(x => [x.name, x.count])"
+ :words="tags.slice(0, 20).map(x => [x.name, x.count])"
:color="color"
- :spacing="0.25"
- font-family="Roboto">
+ :spacing="1">
<template slot-scope="{word, text, weight}">
<div style="cursor: pointer;" :title="weight">
{{ text }}
@@ -51,7 +50,7 @@ export default Vue.extend({
const peak = Math.max.apply(null, this.tags.map(x => x.count));
const w = weight / peak;
- if (w == 1) {
+ if (w > 0.9) {
return this.$store.state.device.darkmode ? '#ff4e69' : '#ff4e69';
} else if (w > 0.5) {
return this.$store.state.device.darkmode ? '#3bc4c7' : '#3bc4c7';