1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-21 01:45:33 +02:00

perf(frontend): improve rendering performance

This commit is contained in:
syuilo
2025-07-05 09:05:47 +09:00
parent 7cf1eccd04
commit a460bb7913
3 changed files with 8 additions and 8 deletions

View File

@@ -28,11 +28,11 @@ SPDX-License-Identifier: AGPL-3.0-only
import { defineAsyncComponent, ref } from 'vue';
import { toUnicode as decodePunycode } from 'punycode.js';
import { url as local } from '@@/js/config.js';
import { maybeMakeRelative } from '@@/js/url.js';
import type { MkABehavior } from '@/components/global/MkA.vue';
import * as os from '@/os.js';
import { useTooltip } from '@/composables/use-tooltip.js';
import { isEnabledUrlPreview } from '@/utility/url-preview.js';
import type { MkABehavior } from '@/components/global/MkA.vue';
import { maybeMakeRelative } from '@@/js/url.js';
function safeURIDecode(str: string): string {
try {
@@ -94,7 +94,7 @@ const target = self ? null : '_blank';
}
.schema {
opacity: 0.5;
color: color(from currentcolor srgb r g b / 0.5); // DOMード全体をopacityで半透明化するより文字色を半透明化した方が若干レンダリングパフォーマンスが良い
}
.hostname {
@@ -102,11 +102,11 @@ const target = self ? null : '_blank';
}
.pathname {
opacity: 0.8;
color: color(from currentcolor srgb r g b / 0.8); // DOMード全体をopacityで半透明化するより文字色を半透明化した方が若干レンダリングパフォーマンスが良い
}
.query {
opacity: 0.5;
color: color(from currentcolor srgb r g b / 0.5); // DOMード全体をopacityで半透明化するより文字色を半透明化した方が若干レンダリングパフォーマンスが良い
}
.hash {