Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
93d3e3db
Commit
93d3e3db
authored
Jan 14, 2021
by
Mehul Sharma
Committed by
David O'Regan
Jan 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Centered Markdown Preview in Web IDE and Set a Max-Width
parent
02d36848
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
app/assets/javascripts/vue_shared/components/content_viewer/viewers/markdown_viewer.vue
...red/components/content_viewer/viewers/markdown_viewer.vue
+1
-1
app/assets/stylesheets/page_bundles/ide.scss
app/assets/stylesheets/page_bundles/ide.scss
+4
-0
changelogs/unreleased/webide-markdown-center.yml
changelogs/unreleased/webide-markdown-center.yml
+5
-0
No files found.
app/assets/javascripts/vue_shared/components/content_viewer/viewers/markdown_viewer.vue
View file @
93d3e3db
...
...
@@ -111,6 +111,6 @@ export default {
<
template
>
<div
ref=
"markdownPreview"
class=
"md-previewer"
data-testid=
"md-previewer"
>
<gl-skeleton-loading
v-if=
"isLoading"
/>
<div
v-else
class=
"md"
v-html=
"previewContent"
></div>
<div
v-else
class=
"md
gl-ml-auto gl-mr-auto
"
v-html=
"previewContent"
></div>
</div>
</
template
>
app/assets/stylesheets/page_bundles/ide.scss
View file @
93d3e3db
...
...
@@ -179,6 +179,10 @@ $ide-commit-header-height: 48px;
overflow
:
auto
;
padding
:
$gl-padding
;
background-color
:
var
(
--
ide-empty-state-background
,
transparent
);
.md
{
max-width
:
$limited-layout-width
;
}
}
.file-container
{
...
...
changelogs/unreleased/webide-markdown-center.yml
0 → 100644
View file @
93d3e3db
---
title
:
Centered Markdown Preview in Web IDE with a set max width to limit the container size
merge_request
:
50291
author
:
Mehul Sharma
type
:
other
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment