Commit 93d3e3db authored by Mehul Sharma's avatar Mehul Sharma Committed by David O'Regan

Centered Markdown Preview in Web IDE and Set a Max-Width

parent 02d36848
......@@ -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>
......@@ -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 {
......
---
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment