mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Add administrator role plus manage dashboard and cleanup database migrations
This commit is contained in:
@@ -46,12 +46,16 @@
|
||||
const fileUrl = `${apiPrefix}/rpc/retrieve_file?id=${fileId}`;
|
||||
|
||||
const target = event.target as HTMLTextAreaElement;
|
||||
const newContent =
|
||||
target.value.slice(0, target.selectionStart) +
|
||||
`` +
|
||||
target.value.slice(target.selectionStart);
|
||||
const markdownToInsert = ``;
|
||||
const cursorPosition = target.selectionStart;
|
||||
const newContent = target.value.slice(0, target.selectionStart) + markdownToInsert;
|
||||
target.value.slice(target.selectionStart);
|
||||
|
||||
previewContent.value = newContent;
|
||||
|
||||
const newCursorPosition = cursorPosition + markdownToInsert.length;
|
||||
target.setSelectionRange(newCursorPosition, newCursorPosition);
|
||||
target.focus();
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -51,8 +51,7 @@
|
||||
background-color: var(--bg-primary);
|
||||
border-radius: var(--border-radius);
|
||||
border: var(--border-primary);
|
||||
inline-size: var(--modal-width);
|
||||
max-inline-size: 100%;
|
||||
inline-size: min(var(--modal-width), 100%);
|
||||
max-block-size: calc(100vh - var(--space-m));
|
||||
overflow-y: auto;
|
||||
z-index: 20;
|
||||
|
||||
Reference in New Issue
Block a user