summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkCodeInline.vue
blob: 04b6e54108b59c2f6f3fad31f59a2873f02e10f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!--
SPDX-FileCopyrightText: syuilo and misskey-project
SPDX-License-Identifier: AGPL-3.0-only
-->

<template>
<code :class="$style.root">{{ code }}</code>
</template>

<script lang="ts" setup>
const props = defineProps<{
	code: string;
}>();
</script>

<style module lang="scss">
.root {
	display: inline-block;
	font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
	overflow-wrap: anywhere;
	background: var(--MI_THEME-bg);
	padding: .1em;
	border-radius: .3em;
}
</style>