fix aside menu in editor (#201)

This commit is contained in:
Ilya Y 2023-08-31 16:41:34 +03:00 committed by GitHub
parent 39e27cc307
commit dacbaba151
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 149 additions and 152 deletions

View File

@ -217,10 +217,9 @@
} }
.wrapperTableOfContents { .wrapperTableOfContents {
position: sticky; position: fixed;
left: 0; left: 40px;
top: 0; top: 100px;
margin-bottom: -157px;
width: 240px; width: 240px;
padding-top: 100px; padding-top: 100px;
} }

View File

@ -249,7 +249,6 @@ export const EditView = (props: Props) => {
<AutoSaveNotice active={saving()} /> <AutoSaveNotice active={saving()} />
<div class="position-relative">
<div class={styles.wrapperTableOfContents}> <div class={styles.wrapperTableOfContents}>
<Show when={isDesktop() && form.body}> <Show when={isDesktop() && form.body}>
<TableOfContents variant="editor" parentSelector="#editorBody" body={form.body} /> <TableOfContents variant="editor" parentSelector="#editorBody" body={form.body} />
@ -409,7 +408,6 @@ export const EditView = (props: Props) => {
/> />
</Show> </Show>
</div> </div>
</div>
</form> </form>
</div> </div>
<Show when={page().route === 'editSettings'}> <Show when={page().route === 'editSettings'}>