diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-02 18:11:35 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-02 18:11:35 +0300 |
commit | bea3a92105825c1fcef145727ba87bee3e31daee (patch) | |
tree | dde3c9fa4425865a8d3b49f3aaf73c7d04e6c592 /app/assets/javascripts/blob | |
parent | bd1df17345c7fe8cbc19a9716b931acdbb7d0ce5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/blob')
-rw-r--r-- | app/assets/javascripts/blob/notebook/index.js | 3 | ||||
-rw-r--r-- | app/assets/javascripts/blob/notebook/notebook_viewer.vue | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/app/assets/javascripts/blob/notebook/index.js b/app/assets/javascripts/blob/notebook/index.js index a8c94b6263e..25fe29c4fbe 100644 --- a/app/assets/javascripts/blob/notebook/index.js +++ b/app/assets/javascripts/blob/notebook/index.js @@ -6,6 +6,9 @@ export default () => { return new Vue({ el, + provide: { + relativeRawPath: el.dataset.relativeRawPath, + }, render(createElement) { return createElement(NotebookViewer, { props: { diff --git a/app/assets/javascripts/blob/notebook/notebook_viewer.vue b/app/assets/javascripts/blob/notebook/notebook_viewer.vue index 02f93e14219..d2a841c88f1 100644 --- a/app/assets/javascripts/blob/notebook/notebook_viewer.vue +++ b/app/assets/javascripts/blob/notebook/notebook_viewer.vue @@ -77,3 +77,9 @@ export default { </p> </div> </template> + +<style> +.output img { + min-width: 0; /* https://www.w3.org/TR/css-flexbox-1/#min-size-auto */ +} +</style> |