show the border MFM function in cheatsheet - fixes #533

This commit is contained in:
dakkar 2025-01-18 11:01:09 +00:00
parent 42d8279610
commit 49d6fc6782
3 changed files with 21 additions and 0 deletions

8
locales/index.d.ts vendored
View file

@ -11525,6 +11525,14 @@ export interface Locale extends ILocale {
* Change the background color of text. * Change the background color of text.
*/ */
"backgroundDescription": string; "backgroundDescription": string;
/**
* Border
*/
"border": string;
/**
* Draw a border around the content.
*/
"borderDescription": string;
/** /**
* Plain * Plain
*/ */

View file

@ -381,6 +381,16 @@ SPDX-License-Identifier: AGPL-3.0-only
</div> </div>
</div> </div>
</div> </div>
<div class="section _block">
<div class="title">{{ i18n.ts._mfm.border }}</div>
<div class="content">
<p>{{ i18n.ts._mfm.borderDescription }}</p>
<div class="preview">
<Mfm :text="preview_border"/>
<MkTextarea v-model="preview_border"><span>MFM</span></MkTextarea>
</div>
</div>
</div>
<div class="section _block"> <div class="section _block">
<div class="title">{{ i18n.ts._mfm.plain }}</div> <div class="title">{{ i18n.ts._mfm.plain }}</div>
<div class="content"> <div class="content">
@ -479,6 +489,7 @@ const preview_scale = ref(
); );
const preview_fg = ref('$[fg.color=eb6f92 Text color]'); const preview_fg = ref('$[fg.color=eb6f92 Text color]');
const preview_bg = ref('$[bg.color=31748f Background color]'); const preview_bg = ref('$[bg.color=31748f Background color]');
const preview_border = ref('$[border.color=eb6f92,style=outset,width=10,radius=10 Border]');
const preview_plain = ref( const preview_plain = ref(
'<plain>**bold** @mention #hashtag `code` $[x2 🍮]</plain>', '<plain>**bold** @mention #hashtag `code` $[x2 🍮]</plain>',
); );

View file

@ -383,6 +383,8 @@ _mfm:
fadeDescription: 'Fade text in and out.' fadeDescription: 'Fade text in and out.'
background: "Background color" background: "Background color"
backgroundDescription: "Change the background color of text." backgroundDescription: "Change the background color of text."
border: "Border"
borderDescription: "Draw a border around the content."
plain: "Plain" plain: "Plain"
plainDescription: "Deactivates the effects of all MFM contained within this MFM effect." plainDescription: "Deactivates the effects of all MFM contained within this MFM effect."
_animatedMFM: _animatedMFM: