add full screen view for task description
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -25,9 +25,9 @@ export function TaskSettingsModal(
|
||||
};
|
||||
|
||||
return (
|
||||
<div class="modal task-settings" open>
|
||||
<div class="modal task-settings" open toggle:full-description={taskViewModel.isPresentingFullScreenDescription}>
|
||||
<div>
|
||||
<main>
|
||||
<main id="standard-main">
|
||||
<h2>
|
||||
{
|
||||
coreViewModel.translations.chatPage.task
|
||||
@@ -89,6 +89,18 @@ export function TaskSettingsModal(
|
||||
></textarea>
|
||||
</div>
|
||||
</label>
|
||||
<div class="flex-row justify-end">
|
||||
<button
|
||||
class="width-50"
|
||||
on:click={taskViewModel.openFullscreenDecription}
|
||||
>
|
||||
{
|
||||
coreViewModel.translations.chatPage.task.taskDescriptionExpandButton
|
||||
}
|
||||
|
||||
<span class="icon">fullscreen</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr class="mobile-only"></hr>
|
||||
@@ -193,7 +205,7 @@ export function TaskSettingsModal(
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<hr></hr>
|
||||
|
||||
<label class="tile flex-no">
|
||||
@@ -228,7 +240,28 @@ export function TaskSettingsModal(
|
||||
)}
|
||||
</div>
|
||||
</main>
|
||||
<div class="flex-row width-100">
|
||||
<main id="fullscreen-main">
|
||||
<textarea
|
||||
style="height: 100%; width: 100%; max-width: unset"
|
||||
bind:value={taskViewModel.description}
|
||||
></textarea>
|
||||
</main>
|
||||
<div
|
||||
class="flex-row width-100"
|
||||
id="fullscreen-exit"
|
||||
>
|
||||
<button
|
||||
class="flex"
|
||||
on:click={taskViewModel.closeFullscreenDecription}
|
||||
>
|
||||
{coreViewModel.translations.general.exitButton}
|
||||
<span class="icon">fullscreen_exit</span>
|
||||
</button>
|
||||
</div>
|
||||
<div
|
||||
class="flex-row width-100"
|
||||
id="controls"
|
||||
>
|
||||
<button
|
||||
class="flex"
|
||||
on:click={taskViewModel.closeAndDiscard}
|
||||
@@ -245,5 +278,5 @@ export function TaskSettingsModal(
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
);
|
||||
}
|
||||
|
||||
@@ -266,3 +266,15 @@ button
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.modal.task-settings:not([full-description]) :is(#fullscreen-exit, #fullscreen-main) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.modal.task-settings[full-description] :is(#controls, #standard-main) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.modal.task-settings[full-description] > div {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ const englishTranslations = {
|
||||
cancelButton: "Cancel",
|
||||
closeButton: "Close",
|
||||
deleteButton: "Delete",
|
||||
exitButton: "Exit",
|
||||
|
||||
continueButton: "Continue",
|
||||
confirmButton: "Confirm",
|
||||
@@ -285,6 +286,7 @@ const englishTranslations = {
|
||||
taskPriorityLabel: "Priority",
|
||||
|
||||
taskDescriptionLabel: "Description",
|
||||
taskDescriptionExpandButton: "Fullscreen",
|
||||
|
||||
taskDateLabel: "Date",
|
||||
taskTimeLabel: "Time",
|
||||
|
||||
@@ -9,7 +9,7 @@ import ConnectionModel from "../../Model/Global/connectionModel";
|
||||
import ChatListModel from "../../Model/Chat/chatListModel";
|
||||
|
||||
export default class CoreViewModel {
|
||||
readonly BUILD = "Build 26.09.21.C";
|
||||
readonly BUILD = "Build 26.09.22.A";
|
||||
|
||||
translations: Translations;
|
||||
|
||||
|
||||
Binary file not shown.
@@ -58,6 +58,8 @@ export default class TaskViewModel extends Context {
|
||||
selectedVersionId: React.State<string> = new React.State("");
|
||||
versionIds: React.ListState<string> = new React.ListState();
|
||||
|
||||
isPresentingFullScreenDescription: React.State<boolean> = new React.State(false);
|
||||
|
||||
// methods
|
||||
dragStart = (event: DragEvent): void => {
|
||||
ViewController.allowDrag(event);
|
||||
@@ -96,6 +98,14 @@ export default class TaskViewModel extends Context {
|
||||
this.save();
|
||||
};
|
||||
|
||||
openFullscreenDecription = (): void => {
|
||||
this.isPresentingFullScreenDescription.value = true;
|
||||
}
|
||||
|
||||
closeFullscreenDecription = (): void => {
|
||||
this.isPresentingFullScreenDescription.value = false;
|
||||
}
|
||||
|
||||
updateIndex = (): void => {
|
||||
const index: number =
|
||||
this.containingViewModel.taskIndexManager.getIndex(this);
|
||||
|
||||
Reference in New Issue
Block a user