Merge branch 'develop' of codeberg.org:calckey/calckey into develop

This commit is contained in:
ThatOneCalculator 2023-06-02 20:05:19 -07:00
commit 44d77f60ef
No known key found for this signature in database
GPG key ID: 8703CACD01000000
3 changed files with 12 additions and 13 deletions

View file

@ -6,12 +6,7 @@
@closed="$emit('closed')" @closed="$emit('closed')"
> >
<template #header>{{ i18n.ts._mfm.cheatSheet }}</template> <template #header>{{ i18n.ts._mfm.cheatSheet }}</template>
<XCheatSheet :popup="true" style="background: var(--bg)"/>
<div class="_monolithic_">
<div class="_section">
<XCheatSheet />
</div>
</div>
</XModalWindow> </XModalWindow>
</template> </template>
@ -41,4 +36,5 @@ function close(res) {
.fade-leave-to { .fade-leave-to {
opacity: 0; opacity: 0;
} }
</style> </style>

View file

@ -1,8 +1,8 @@
<template> <template>
<MkStickyContainer> <MkStickyContainer>
<template #header><MkPageHeader /></template> <template #header><MkPageHeader v-if="!popup" /></template>
<MkSpacer :content-max="800"> <MkSpacer :content-max="800">
<div :class="$style.root"> <div class="mfm-cheat-sheet">
<div>{{ i18n.ts._mfm.intro }}</div> <div>{{ i18n.ts._mfm.intro }}</div>
<br /> <br />
<div class="section _block"> <div class="section _block">
@ -449,6 +449,10 @@ import { definePageMetadata } from "@/scripts/page-metadata";
import { i18n } from "@/i18n"; import { i18n } from "@/i18n";
import { instance } from "@/instance"; import { instance } from "@/instance";
defineProps<{
popup?: boolean
}>();
let preview_mention = $ref("@example"); let preview_mention = $ref("@example");
let preview_hashtag = $ref("#test"); let preview_hashtag = $ref("#test");
let preview_link = $ref(`[${i18n.ts._mfm.dummy}](https://calckey.org)`); let preview_link = $ref(`[${i18n.ts._mfm.dummy}](https://calckey.org)`);
@ -514,10 +518,8 @@ definePageMetadata({
}); });
</script> </script>
<style lang="scss" module> <style lang="scss" scoped>
.root { .mfm-cheat-sheet {
background: var(--bg);
> .section { > .section {
> .title { > .title {
position: sticky; position: sticky;
@ -534,6 +536,7 @@ definePageMetadata({
> p { > p {
margin: 0; margin: 0;
padding: 16px; padding: 16px;
padding-top: 0;
} }
> .preview { > .preview {

View file

@ -134,7 +134,7 @@
</div> </div>
<div class="follow-container"> <div class="follow-container">
<div class="actions"> <div class="actions">
<button class="menu _button" @click="menu"> <button class="menu _button" @click="menu" v-tooltip="i18n.ts.menu">
<i <i
class="ph-dots-three-outline ph-bold ph-lg" class="ph-dots-three-outline ph-bold ph-lg"
></i> ></i>