diff --git a/frontend/src/components/home/ContentAuth.vue b/frontend/src/components/home/ContentAuth.vue index d5fd8499e..8362803a5 100644 --- a/frontend/src/components/home/ContentAuth.vue +++ b/frontend/src/components/home/ContentAuth.vue @@ -48,7 +48,10 @@ class="task-detail-view-modal" @close="closeModal()" > - +
-
- -

- {{ textIdentifier }} -

-
+
+
+ + +

+ {{ textIdentifier }} +

+
+
- + + +

{{ task.title.trim() }}

+ + + () const router = useRouter() @@ -138,14 +151,11 @@ async function save(title: string) { .title.input { // 1.8rem is the font-size, 1.125 is the line-height, .3rem padding everywhere, 1px border around the whole thing. min-height: calc(1.8rem * 1.125 + .6rem + 2px); + margin-right: 0; @media screen and (max-width: $tablet) { margin: 0 -.3rem .5rem -.3rem; // the title has 0.3rem padding - this make the text inside of it align with the rest } - - @media screen and (min-width: $tablet) and (max-width: #{$desktop + $close-button-min-space}) { - width: calc(100% - 6.5rem); - } } .title.task-id { @@ -153,12 +163,39 @@ async function save(title: string) { white-space: nowrap; } -.heading__done { - margin-left: .5rem; -} - .color-bubble { height: .75rem; width: .75rem; } + +.close { + font-size: 2rem; + margin-left: 0.5rem; + line-height: 1; + + @media screen and (max-width: $tablet) { + display: none; + } + + @media screen and (min-width: #{$desktop + 1px}) { + display: none; + } +} + +.task-properties .close { + display: none; + position: absolute; + right: 1.25rem; + top: 1.1rem; + + @media screen and (max-width: $tablet) { + display: block; + } +} + +.task-properties { + @media screen and (max-width: $tablet) { + flex-direction: row; + } +} \ No newline at end of file diff --git a/frontend/src/views/tasks/TaskDetailView.vue b/frontend/src/views/tasks/TaskDetailView.vue index 1ccca1b7b..9be07de63 100644 --- a/frontend/src/views/tasks/TaskDetailView.vue +++ b/frontend/src/views/tasks/TaskDetailView.vue @@ -16,6 +16,7 @@ :task="task" :can-write="canWrite" @update:task="Object.assign(task, $event)" + @close="$emit('close')" />