styling + remove log

This commit is contained in:
Freeplay 2023-05-12 20:30:06 -04:00
parent a5f9dfd84a
commit 17acb0ee56
1 changed files with 14 additions and 13 deletions

View File

@ -120,6 +120,7 @@
v-model="collapsed" v-model="collapsed"
></XShowMoreButton> ></XShowMoreButton>
<XCwButton v-if="note.cw" v-model="showContent" :note="note" /> <XCwButton v-if="note.cw" v-model="showContent" :note="note" />
</div>
<MkButton <MkButton
v-if="hasMfm && defaultStore.state.animatedMfm" v-if="hasMfm && defaultStore.state.animatedMfm"
@click.stop="toggleMfm" @click.stop="toggleMfm"
@ -132,7 +133,6 @@
</template> </template>
</MkButton> </MkButton>
</div> </div>
</div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
@ -185,8 +185,6 @@ const hasMfm = $ref(mfms.length > 0);
let disableMfm = $ref(hasMfm && defaultStore.state.animatedMfm); let disableMfm = $ref(hasMfm && defaultStore.state.animatedMfm);
console.log(disableMfm + " " + props.note.id + " " + defaultStore.state.animatedMfm);
async function toggleMfm() { async function toggleMfm() {
if (disableMfm) { if (disableMfm) {
const { canceled } = await os.confirm({ const { canceled } = await os.confirm({
@ -335,5 +333,8 @@ function focusFooter(ev) {
transition: none !important; transition: none !important;
} }
} }
> :deep(button) {
margin-top: 10px;
}
} }
</style> </style>