tg-blog 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tg-blog",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "serve": "vite",
@@ -1,7 +1,7 @@
1
1
  @import colors
2
2
 
3
3
  // Constants
4
- $font: Avenir, Helvetica, Arial, sans-serif
4
+ $font: "Noto Sans SC", Avenir, Helvetica, Arial, sans-serif
5
5
 
6
6
  // Container width (This is normally 50vw,
7
7
  // but when it's smaller than 900px, use 100vw - 50px, because 50px is the margin)
@@ -9,7 +9,7 @@
9
9
  <img class="thumb" v-if="p.reply.thumb" :src="p.reply.thumb" alt="">
10
10
  <div class="mtext">
11
11
  <div class="reply-to">Reply to:</div>
12
- <span v-html="p.reply.text"></span>
12
+ <div class="reply-text" v-html="p.reply.text"></div>
13
13
  </div>
14
14
  </div>
15
15
  <div class="images" v-if="p.images && p.images.length === 1" :class="{'has-head': p.reply || p.forwarded_from}">
@@ -105,7 +105,12 @@ export default class PostView extends Vue
105
105
  </script>
106
106
 
107
107
  <style lang="sass" scoped>
108
+ @import "src/css/global"
108
109
  @import "src/css/colors"
110
+ @import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@500&family=Shadows+Into+Light&display=swap')
111
+
112
+ .font-code
113
+ font-family: Inconsolata, Monospaced, $font
109
114
 
110
115
  .post.service
111
116
  .id
@@ -135,17 +140,18 @@ export default class PostView extends Vue
135
140
  object-fit: cover
136
141
 
137
142
  .mtext
138
- flex: 1
139
- max-height: 40px
143
+ flex-grow: 1
140
144
  margin-left: 10px
141
- //color: lighten($color-text-main, 20)
142
145
  color: $color-text-light
143
146
  display: -webkit-box
144
- -webkit-line-clamp: 2 /* number of lines to show */
145
- line-clamp: 2
146
147
  -webkit-box-orient: vertical
147
148
  overflow: hidden
148
149
 
150
+ .reply-text
151
+ white-space: nowrap
152
+ overflow: hidden
153
+ text-overflow: ellipsis
154
+
149
155
  .reply:before
150
156
  content: " "
151
157
  border: 2px solid lighten($color-text-main, 20)