mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-21 20:25:36 +02:00
enhance(frontend): テーマの適用管理を改善 (#17376)
* wip * add test * use themeManager.currentCompiledTheme for obtaining theme variables / reduce getComputedStyle usage * fix * fix: better error handling on theme installation * Update Changelog * chore: remove frontend-shared builds as it is currently working as a stub package * fix: broken lockfile * fix * fix lint * fix
This commit is contained in:
@@ -324,8 +324,9 @@ function onTopHandlePointerdown(evt: PointerEvent) {
|
||||
if (main == null) return;
|
||||
|
||||
const base = getPositionY(evt);
|
||||
const height = parseInt(getComputedStyle(main, '').height, 10);
|
||||
const top = parseInt(getComputedStyle(main, '').top, 10);
|
||||
const computedStyle = getComputedStyle(main, '');
|
||||
const height = parseInt(computedStyle.height, 10);
|
||||
const top = parseInt(computedStyle.top, 10);
|
||||
|
||||
// 動かした時
|
||||
dragListen(me => {
|
||||
@@ -353,8 +354,9 @@ function onRightHandlePointerdown(evt: PointerEvent) {
|
||||
if (main == null) return;
|
||||
|
||||
const base = getPositionX(evt);
|
||||
const width = parseInt(getComputedStyle(main, '').width, 10);
|
||||
const left = parseInt(getComputedStyle(main, '').left, 10);
|
||||
const computedStyle = getComputedStyle(main, '');
|
||||
const width = parseInt(computedStyle.width, 10);
|
||||
const left = parseInt(computedStyle.left, 10);
|
||||
const browserWidth = window.innerWidth;
|
||||
|
||||
// 動かした時
|
||||
@@ -380,8 +382,9 @@ function onBottomHandlePointerdown(evt: PointerEvent) {
|
||||
if (main == null) return;
|
||||
|
||||
const base = getPositionY(evt);
|
||||
const height = parseInt(getComputedStyle(main, '').height, 10);
|
||||
const top = parseInt(getComputedStyle(main, '').top, 10);
|
||||
const computedStyle = getComputedStyle(main, '');
|
||||
const height = parseInt(computedStyle.height, 10);
|
||||
const top = parseInt(computedStyle.top, 10);
|
||||
const browserHeight = window.innerHeight;
|
||||
|
||||
// 動かした時
|
||||
@@ -407,8 +410,9 @@ function onLeftHandlePointerdown(evt: PointerEvent) {
|
||||
if (main == null) return;
|
||||
|
||||
const base = getPositionX(evt);
|
||||
const width = parseInt(getComputedStyle(main, '').width, 10);
|
||||
const left = parseInt(getComputedStyle(main, '').left, 10);
|
||||
const computedStyle = getComputedStyle(main, '');
|
||||
const width = parseInt(computedStyle.width, 10);
|
||||
const left = parseInt(computedStyle.left, 10);
|
||||
|
||||
// 動かした時
|
||||
dragListen(me => {
|
||||
|
||||
Reference in New Issue
Block a user