2024-01-18 04:16:12 +01:00
|
|
|
<!--
|
2024-02-13 16:50:11 +01:00
|
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
2024-01-18 04:16:12 +01:00
|
|
|
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;
|
2024-02-06 07:03:07 +01:00
|
|
|
background: var(--bg);
|
2024-01-18 04:16:12 +01:00
|
|
|
padding: .1em;
|
|
|
|
border-radius: .3em;
|
|
|
|
}
|
|
|
|
</style>
|