grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

Help wanted : I want to set panels on the left side and editor on the right side

Open vishal5033 opened this issue 9 years ago • 8 comments

Hello,

I want panels to be shown on the left side and editor on the right side of the window. Can you please help me out

vishal5033 avatar Nov 16 '17 06:11 vishal5033

Hi! I managed to do it with a plugin on a project that we are working on. I don't know if @artf would like to implement it in grapesjs.

JuanTincho avatar Nov 16 '17 12:11 JuanTincho

Hi @JuanTincho , Can you please provide me that plugin. I also want to implement tabs in the panel menu. If you have some details about that also. Can you please share with me, it would be very helpful.

vishal5033 avatar Nov 17 '17 05:11 vishal5033

Currently, the core comes with a default set of Panels but likely this will be removed in the future. Grapesjs doesn't care too much about the UI part around the canvas, so if you need something complex, animated panels, etc. just use js/css

artf avatar Nov 17 '17 12:11 artf

@JuanTincho yes please post the plugin

Geczy avatar Nov 21 '17 14:11 Geczy

@JuanTincho it would be awesome if you share the code with us

punkt2 avatar Jan 10 '18 16:01 punkt2

Sorry guys, I have done it with a .scss file. This is my code:

.gjs-cv-canvas {
  right: 0;
  left: auto;
}

.gjs-pn-panel {
  &#gjs-pn-commands {
    right: 0;
    left: auto;
  }

  &#gjs-pn-options {
    margin-left: 15%;
    right: auto;
  }

  .gjs-pn-buttons {
    justify-content: center;
  }

  &#gjs-pn-views-container,
  &#gjs-pn-views {
    left: 0;
    right: auto;
  }

  &#gjs-pn-devices-c {
    right: 10em;
  }
}

JuanTincho avatar Feb 09 '18 15:02 JuanTincho

Be aware that from https://github.com/artf/grapesjs/releases/tag/v0.14.5 #gjs-pn-* are now .gjs-pn-*

artf avatar Feb 12 '18 22:02 artf

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Sep 17 '19 23:09 lock[bot]