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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user