mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-25 16:19:44 +02:00
Multiple fixes (#211)
* Fix horizontal scroll * Attempt 2 * Fix merge issue * Do not display right column if it's empty * Fix editor width on empty page * A fix * Consider padding when calculating main column margin left * Mobile layout fix * Fix main column width in edit mode * Edit mode content width fix * Add comments Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
This commit is contained in:
parent
caea20203b
commit
c3125adf4b
3 changed files with 36 additions and 6 deletions
|
@ -82,6 +82,11 @@ export default class Writing {
|
|||
this.nodes.parentIdSelector = moduleEl.querySelector('[name="parent"]');
|
||||
this.nodes.putAboveIdSelector = moduleEl.querySelector('[name="above"]');
|
||||
this.nodes.uriInput = moduleEl.querySelector('[name="uri-input"]');
|
||||
|
||||
/**
|
||||
* Set minimum margin left for main column to prevent editor controls from overlapping sidebar
|
||||
*/
|
||||
document.documentElement.style.setProperty('--main-col-min-margin-left', '50px');
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue