1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-04-01 09:09:29 -05:00

fix autosapcing notes

This commit is contained in:
FLY_MC 2025-03-27 15:51:08 +08:00
parent 7f4bfa3531
commit a70835cae5
2 changed files with 5 additions and 4 deletions
packages/frontend/src/components

View file

@ -252,7 +252,8 @@ const props = withDefaults(defineProps<{
mock: false,
});
provide(DI.mock, props.mock);
const mockValue = computed(() => props.mock);
provide(DI.mock, mockValue.value);
const emit = defineEmits<{
(ev: 'reaction', emoji: string): void;
@ -297,7 +298,7 @@ const renoteTime = useTemplateRef('renoteTime');
const reactButton = useTemplateRef('reactButton');
const clipButton = useTemplateRef('clipButton');
const likeButton = useTemplateRef('likeButton');
const appearNote = computed(() => getAppearNote(note.value));
const appearNote = computed(() => spacingNote(getAppearNote(note.value)));
const galleryEl = useTemplateRef('galleryEl');
const isMyRenote = $i && ($i.id === note.value.userId);
const showContent = ref(false);
@ -476,7 +477,7 @@ if (!props.mock) {
}
function noteClickToOpen(id: string) {
const selection = document.getSelection();
const selection = window.document.getSelection();
if (selection?.toString().length === 0) {
router.push(`/notes/${id}`);
}

View file

@ -338,7 +338,7 @@ const reactButton = useTemplateRef('reactButton');
const clipButton = useTemplateRef('clipButton');
const likeButton = useTemplateRef('likeButton');
const historyMenuButton = useTemplateRef('historyMenuButton');
const appearNote = computed(() => getAppearNote(note.value));
const appearNote = computed(() => spacingNote(getAppearNote(note.value)));
const galleryEl = useTemplateRef('galleryEl');
const isMyRenote = $i && ($i.id === note.value.userId);
const showContent = ref(false);