mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 16:43:08 +02:00
fix deck
This commit is contained in:
parent
1157298eb8
commit
1669f5b265
3 changed files with 3 additions and 2 deletions
|
@ -109,6 +109,8 @@ export class Storage<T extends StateDef> {
|
|||
const stop = watch(this.reactiveState[key], val => {
|
||||
valueRef.value = val;
|
||||
});
|
||||
|
||||
// NOTE: vueコンポーネント内で呼ばれない限りは、onUnmounted は無意味なのでメモリリークする
|
||||
onUnmounted(() => {
|
||||
stop();
|
||||
});
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
:key="ids[0]"
|
||||
:column="columns.find(c => c.id === ids[0])"
|
||||
@parent-focus="moveFocus(ids[0], $event)"
|
||||
:style="columns.find(c => c.id === ids[0]).flexible ? { flex: 1 } : { width: columns.find(c => c.id === ids[0]).width + 'px' }"
|
||||
:style="columns.find(c => c.id === ids[0]).flexible ? { flex: 1, minWidth: '350px' } : { width: columns.find(c => c.id === ids[0]).width + 'px' }"
|
||||
/>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
<XTlColumn v-else-if="column.type === 'tl'" :column="column" :is-stacked="isStacked" @parent-focus="$emit('parent-focus', $event)"/>
|
||||
<XListColumn v-else-if="column.type === 'list'" :column="column" :is-stacked="isStacked" @parent-focus="$emit('parent-focus', $event)"/>
|
||||
<XAntennaColumn v-else-if="column.type === 'antenna'" :column="column" :is-stacked="isStacked" @parent-focus="$emit('parent-focus', $event)"/>
|
||||
<!-- TODO: <XTlColumn v-else-if="column.type === 'hashtag'" :column="column" :is-stacked="isStacked" @parent-focus="$emit('parent-focus', $event)"/> -->
|
||||
<XMentionsColumn v-else-if="column.type === 'mentions'" :column="column" :is-stacked="isStacked" @parent-focus="$emit('parent-focus', $event)"/>
|
||||
<XDirectColumn v-else-if="column.type === 'direct'" :column="column" :is-stacked="isStacked" @parent-focus="$emit('parent-focus', $event)"/>
|
||||
</template>
|
||||
|
|
Loading…
Reference in a new issue