Introducing ReUI:Open-source UI components and apps built with React, Next.js and Tailwind CSS
Browse ReUI

Width proportions problem in metronic vue project with respect to preview


Hello,

You see I have assembled the base project of vue from the official vue repository of metronic and when I implement any html code such as the dashboard of the demo 1, looking at the demo preview of the official website I notice that my dashboard is less wide and I do not understand why.

Regards,


<template>
<div class="flex grow">
<Sidebar />
<div class="wrapper flex grow flex-col">
<Header />
<main class="grow content pt-5" id="content" role="content">
<div class="container-fixed">
<!-- place your content here -->
<router-view />
</div>
</main>
<Footer />
</div>
</div>
<SearchModal />
</template>

<script lang="ts" setup>
import Sidebar from "../components/Sidebar.vue"
import Header from "../components/Header.vue"
import Footer from "../components/Footer.vue"
import SearchModal from "../components/SearchModal.vue";
import { nextTick, onMounted } from "vue";
import KTComponent from "../metronic/core/index";
import KTLayout from "../metronic/app/layouts/demo1.js";


onMounted(() => {
nextTick(() => {
KTComponent.init();
KTLayout.init();
});
});
</script>


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (4)


Hi,

Thank you for reaching out to us.

Please ensure your content does not have two container-fixed wrappers. There is already one wrapper defined in metronic-tailwind-html-integration/metronic-tailwind-vue/src/App.vue. You can either remove this class from your page content wrapper or delete this content wrapper from the App.vue.

Regards,
Lauris Stepanovs,
Keenthemes Support Team



I have done what you said and the dashboard occupies the full width but still without the same width proportions, I attach screenshots:

My vue project:
https://imgur.com/ubxMaYJ

The metronic preview project:

https://imgur.com/KUMHm1I

If you look at the metronic one it is wider.

Best regards,



Hi,

Thank you for providing us with details. Noted and we will check it further and get back to you the soonest.

Regards/



Hi,

I want to apologize for the late reply.

From your screenshots, it doesn't seem like the container difference, if the container on Metronic preview indeed is wider then I suggest you compare all the page content containers and make sure that your container classes match the classes on our preview page.

Regards,
Lauris Stepanovs,
Keenthemes Support Team


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(