Skip to content

Commit

Permalink
Fix #3177 (write OT quotes in italic font)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas2 committed Jan 25, 2024
1 parent 4b74fbe commit 98fd22e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/bibleview-js/src/components/OSIS/Seg.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,23 @@
-->

<template>
<slot/>
<span :class="{otPassage: isOtPassage}"><slot/></span>
</template>

<script setup lang="ts">
import {checkUnsupportedProps, useCommon} from "@/composables";
import {computed} from "vue";
const props = defineProps<{type?: string}>();
checkUnsupportedProps(props, "type", ["x-chronology", "font-size: -1;"]);
checkUnsupportedProps(props, "type", ["otPassage", "x-chronology", "font-size: -1;"]);
const isOtPassage = computed(() => props.type === "otPassage");
useCommon();
</script>

<style scoped>
.otPassage {
font-style: italic;
}
</style>

0 comments on commit 98fd22e

Please sign in to comment.