Merge branch 'develop' into pr/15298
This commit is contained in:
commit
8cc64dc544
|
@ -22,6 +22,12 @@ export function useScrollPositionKeeper(scrollContainerRef: Ref<HTMLElement | nu
|
|||
if (!el) return;
|
||||
if (!ready) return;
|
||||
|
||||
if (el.scrollTop < 100) {
|
||||
// 上部にいるときはanchorを参照するとズレの原因になるし位置復元するメリットも乏しいため設定しない
|
||||
anchorId = null;
|
||||
return;
|
||||
}
|
||||
|
||||
const scrollContainerRect = el.getBoundingClientRect();
|
||||
const viewPosition = scrollContainerRect.height / 2;
|
||||
|
||||
|
|
|
@ -280,6 +280,9 @@ const patronsWithIcon = [{
|
|||
}, {
|
||||
name: '新井 治',
|
||||
icon: 'https://assets.misskey-hub.net/patrons/d160876f20394674a17963a0e609600a.jpg',
|
||||
}, {
|
||||
name: 'しきいし',
|
||||
icon: 'https://assets.misskey-hub.net/patrons/77dd5387db41427ba9cbdc8849e76402.jpg',
|
||||
}];
|
||||
|
||||
const patrons = [
|
||||
|
|
|
@ -162,6 +162,7 @@ export class PreferencesManager {
|
|||
this.r[key].value = this.s[key] = v;
|
||||
}
|
||||
|
||||
// TODO: desync対策 cloudの値のfetchが正常に完了していない状態でcommitすると多分値が上書きされる
|
||||
public commit<K extends keyof PREF>(key: K, value: ValueOf<K>) {
|
||||
const v = JSON.parse(JSON.stringify(value)); // deep copy 兼 vueのプロキシ解除
|
||||
|
||||
|
|
Loading…
Reference in New Issue