diff --git a/frontend/src/Components/MarkdownEditor.svelte b/frontend/src/Components/MarkdownEditor.svelte index 0036929..629f2e2 100644 --- a/frontend/src/Components/MarkdownEditor.svelte +++ b/frontend/src/Components/MarkdownEditor.svelte @@ -104,30 +104,16 @@ if (simple) startEdit(); - -
{#if editing} -
- - - - {@html t('markdown_supported')} - - + +
{@html target(editValue.rendered)}
+
+ + {@html t('markdown_supported')} +
-{/if} +{:else} {@html target(editValue.rendered)} +{/if}
\ No newline at end of file diff --git a/frontend/src/routes/task/View.svelte b/frontend/src/routes/task/View.svelte index 1d64f0b..9434461 100644 --- a/frontend/src/routes/task/View.svelte +++ b/frontend/src/routes/task/View.svelte @@ -210,9 +210,7 @@
{#if task.description}
{t('description')}
-
- update({description:val})} /> -
+ update({description:val})} /> {/if} {#if !showSettings && task.start_date}
{t('start_date')}
@@ -277,6 +275,10 @@ {/if} +
{t('tags')}
+
+ +id)} /> +
{t('subtasks')} @@ -288,10 +290,6 @@ {/if}
-
{t('tags')}
-
- +id)} /> -

{t('notes')}

diff --git a/web/src/main/resources/web/css/default.css b/web/src/main/resources/web/css/default.css index ff2653a..a8c0c00 100644 --- a/web/src/main/resources/web/css/default.css +++ b/web/src/main/resources/web/css/default.css @@ -290,6 +290,18 @@ span.timetracking { display: inline-block; } +.markdown.editing{ + display: grid; + grid-template-columns: 1fr 1fr; + column-gap: 10px; +} +.markdown .buttons{ + grid-column-end: span 2; +} + +.editable:hover{ + border: 1px dotted; +} .timetracks .year, .timetracks .month{ border: 1px solid; @@ -307,23 +319,6 @@ span.timetracking { float: right; } -.markdown.editing{ - position: relative; -} - -.markdown.editing > *{ - width: 49%; -} - -.markdown.editing > *:nth-child(2){ - position: absolute; - right: 0; - top: 0; -} - -.markdown img{ - max-width: 75%; -} table{ min-width: 30vw; @@ -370,6 +365,7 @@ a.wikilink{ .grid2{ display: grid; grid-template-columns: 230px auto; + margin: 0 5px; } .grid2 > :nth-child(2n-1){