Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: taichan <[email protected]>
  • Loading branch information
FineArchs and tai-cha authored Jun 9, 2024
1 parent 1fad9a8 commit faf916d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkNote.vue
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ if (collapsingNoteCondition === 'seeRenderedSize') {
const limit = collapseSize * parseFloat(getComputedStyle(collapsibleArea.value).fontSize);
isLong.value = current > limit;
collapsed.value &&= isLong.value;
})
});
}

// plugin
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/components/MkSubNoteContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</template>

<script lang="ts" setup>
import { ref, computed } from 'vue';
import { ref, computed, onMounted } from 'vue';
import * as Misskey from 'misskey-js';
import * as mfm from 'mfm-js';
import MkMediaList from '@/components/MkMediaList.vue';
Expand All @@ -57,7 +57,7 @@ if (collapsingNoteCondition === 'seeRenderedSize') {
const limit = collapseSize * parseFloat(getComputedStyle(collapsibleArea.value).fontSize);
isLong.value = current > limit;
collapsed.value &&= isLong.value;
})
});
}
const isLong = ref(true);
switch (collapsingNoteCondition) {
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/settings/general.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<option value="legacyCalculation">{{ i18n.ts.legacyCalculation }}</option>
<option value="seeRenderedSize">{{ i18n.ts.seeRenderedSize }}</option>
</MkRadios>
<MkRadios v-model="collapsingNoteSize" v-if="collapsingNoteCondition !== 'legacyCalculation'">
<MkRadios v-if="collapsingNoteCondition !== 'legacyCalculation'" v-model="collapsingNoteSize">
<template #label>{{ i18n.ts.collapsingNoteSize }}</template>
<option :value="18">{{ i18n.ts.large }}</option>
<option :value="13.5">{{ i18n.ts.medium }}</option>
Expand Down

0 comments on commit faf916d

Please sign in to comment.