aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/views/index/Notepad/index.vue
blob: 2d4f037d177bd5959d976b5af1c96364adefde73 (plain) (blame)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<script lang="ts">
import { NotepadContent } from "@/views/index/Notepad/type";

export default {
  props: {
    content: {
      type: NotepadContent,
      require: true,
      default: new NotepadContent(),
    },
  },
}
</script>


<template>
  <div class="details" style="overflow-y:hidden;overflow-x:hidden;height:100%">
    <h3>
      {{ content.title }}
    </h3>
    <v-md-preview :text="content.message" ></v-md-preview>
  </div>
</template>


<style scoped>


h3 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-heading);
}

.details {
  flex: 1;
  width: 60dvw;
  float: right;
}

@media screen and (orientation:landscape) {
  .details {
    flex: 1;
    width: 32dvw;
  }
}
</style>