.panel-right {
    transition: 0.25s width;
    overflow: hidden;
    border-left: 1px solid #ddd;
    height: 100%;
}

body:not(.mode-edit) .d-editcontrol { display: none }
body.mode-edit .d-viewcontrol { display: none }