Skip to content

Commit

Permalink
add markdown css
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurier committed May 22, 2024
1 parent 74c006a commit c480668
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
12 changes: 12 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@vuex-orm/core": "^0.36.4",
"deepmerge": "^4.3.1",
"dompurify": "^3.1.2",
"github-markdown-css": "^5.5.1",
"google-maps": "^4.3.3",
"lodash.isequal": "^4.5.0",
"markdown-it": "^14.1.0",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/assets/css/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// }
@import '@fortawesome/fontawesome-free/css/all.min.css';
@import '@cznethub/cznet-vue-core/styles';
@import 'github-markdown-css/github-markdown-light.css';


html {
Expand Down
15 changes: 14 additions & 1 deletion frontend/src/components/dataset/cd.dataset.vue
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@
color="primary"
/>
</div>
<div v-html="readmeMd" class="px-4"></div>
<div v-html="readmeMd" class="markdown-body px-4"></div>
</v-card-text>
</v-card>
</div>
Expand Down Expand Up @@ -1235,4 +1235,17 @@ export default toNative(CdDataset);
:deep(#fileExplorer .v-sheet) {
background-color: #f6f6f6 !important;
}
.markdown-body {
box-sizing: border-box;
min-width: 200px;
max-width: 980px;
padding: 45px;
}
@media (max-width: 767px) {
.markdown-body {
padding: 15px;
}
}
</style>

0 comments on commit c480668

Please sign in to comment.