summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkCodeInline.vue
diff options
context:
space:
mode:
authorMarie <marie@kaifa.ch>2024-01-21 13:11:23 +0100
committerMarie <marie@kaifa.ch>2024-01-21 13:11:23 +0100
commitdb012fc8c3c88f8676b8a0c13347d0257df85eb2 (patch)
treee9118b604b9ea027369cd327837bb59843de6f83 /packages/frontend/src/components/MkCodeInline.vue
parentmerge: fix make sure that signToActivityPubGet defaults to true (#352) (diff)
parentenhance(frontend): 季節に応じた画面の演出を南半球に対応さ... (diff)
downloadsharkey-db012fc8c3c88f8676b8a0c13347d0257df85eb2.tar.gz
sharkey-db012fc8c3c88f8676b8a0c13347d0257df85eb2.tar.bz2
sharkey-db012fc8c3c88f8676b8a0c13347d0257df85eb2.zip
merge: upstream (1)
Diffstat (limited to 'packages/frontend/src/components/MkCodeInline.vue')
-rw-r--r--packages/frontend/src/components/MkCodeInline.vue26
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/frontend/src/components/MkCodeInline.vue b/packages/frontend/src/components/MkCodeInline.vue
new file mode 100644
index 0000000000..5340c1fd5f
--- /dev/null
+++ b/packages/frontend/src/components/MkCodeInline.vue
@@ -0,0 +1,26 @@
+<!--
+SPDX-FileCopyrightText: syuilo and other misskey contributors
+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;
+ color: #D4D4D4;
+ background: #1E1E1E;
+ padding: .1em;
+ border-radius: .3em;
+}
+</style>