@docsector/docsector-reader 0.10.2 → 0.10.4

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/bin/docsector.js CHANGED
@@ -23,7 +23,7 @@ const packageRoot = resolve(__dirname, '..')
23
23
  const args = process.argv.slice(2)
24
24
  const command = args[0]
25
25
 
26
- const VERSION = '0.10.2'
26
+ const VERSION = '0.10.4'
27
27
 
28
28
  const HELP = `
29
29
  Docsector Reader v${VERSION}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docsector/docsector-reader",
3
- "version": "0.10.2",
3
+ "version": "0.10.4",
4
4
  "description": "A documentation rendering engine built with Vue 3, Quasar v2 and Vite. Transform Markdown into beautiful, navigable documentation sites.",
5
5
  "productName": "Docsector Reader",
6
6
  "author": "Rodrigo de Araujo Vieira",
@@ -364,10 +364,12 @@ const tokenized = computed(() => {
364
364
  v-html="token.content"
365
365
  ></ol>
366
366
 
367
- <table
367
+ <div
368
368
  v-else-if="token.tag === 'table'"
369
- v-html="token.content"
370
- ></table>
369
+ class="d-table-wrapper"
370
+ >
371
+ <table v-html="token.content"></table>
372
+ </div>
371
373
 
372
374
  <p
373
375
  v-else-if="token.tag === 'p'"
package/src/css/app.sass CHANGED
@@ -182,8 +182,9 @@ body.body--dark
182
182
  padding: 3px 5px
183
183
  margin: 0 2px
184
184
  border-radius: 2px
185
- white-space: pre-wrap
186
- display: inline-block
185
+ white-space: normal
186
+ word-break: break-word
187
+ display: inline
187
188
  line-height: 0.85em
188
189
 
189
190
  a
@@ -283,8 +284,12 @@ body.body--dark
283
284
  vertical-align: middle
284
285
  width: 280px
285
286
  margin-left: 20px
286
- table
287
+ .d-table-wrapper
288
+ overflow-x: auto
289
+ -webkit-overflow-scrolling: touch
287
290
  max-width: 100%
291
+ table
292
+ width: max-content
288
293
  border: 1px solid #eee
289
294
  border-radius: 4px
290
295
  border-spacing: 0
@@ -293,6 +298,9 @@ body.body--dark
293
298
  font-weight: bold
294
299
  border-bottom: 2px solid #eee
295
300
  text-align: left
301
+ white-space: nowrap
302
+ td code
303
+ white-space: nowrap
296
304
  tr
297
305
  vertical-align: top
298
306
  &:not(.js-file-line-container)