diff --git a/examples/kanban_app.php b/examples/kanban_app.php index 541503e..e3ceefa 100644 --- a/examples/kanban_app.php +++ b/examples/kanban_app.php @@ -377,25 +377,6 @@ if ($densityText !== '') { $statusLabel->setText('Bereit. ' . $densityText); } -$scaleInput = new TextInput( - 'Scale (z.B. 1.0 oder 2.0)', - 'w-40 border border-gray-300 rounded px-3 py-2 bg-white text-black', -); -$scaleInput->setOnChange(function (string $value) use ($statusLabel): void { - $value = trim($value); - if ($value === '') { - return; - } - $scale = (float) $value; - if ($scale <= 0.1 || $scale > 4.0) { - $statusLabel->setText('Skalierungsfaktor muss zwischen 0.1 und 4.0 liegen.'); - return; - } - - putenv('PHPNATIVE_UI_SCALE=' . $scale); - $statusLabel->setText(sprintf('Skalierung gesetzt auf %.2f – bitte App neu starten.', $scale)); -}); - $boardInput = new TextInput('Neues Board', 'flex-1 border border-gray-300 rounded px-3 py-2 bg-white text-black'); $boardAddButton = new Button('Board hinzufügen', 'px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700'); $boardAddButton->setOnClick(function () use ($kanbanView, $boardInput, $statusLabel): void { @@ -404,7 +385,6 @@ $boardAddButton->setOnClick(function () use ($kanbanView, $boardInput, $statusLa }); $boardRow = new Container('flex flex-row gap-3 items-center'); $boardRow->addComponent($boardInput); -$boardRow->addComponent($scaleInput); $boardRow->addComponent($boardAddButton); $root->addComponent($boardRow); diff --git a/examples/kanban_data.json b/examples/kanban_data.json index 5a3b90d..739dcd0 100644 --- a/examples/kanban_data.json +++ b/examples/kanban_data.json @@ -18,22 +18,11 @@ { "id": "board_691661d89de806.79123800", "title": "In Arbeit", - "tasks": [ - { - "id": "task_691661d89de7a0.19655479", - "title": "Mockups skizzieren", - "note": "" - } - ] + "tasks": [] }, { "id": "board_691661d89de894.20053237", "title": "Erledigt", - "tasks": [] - }, - { - "id": "board_69170bcc2be8c6.34720864", - "title": "asd", "tasks": [ { "id": "task_691661d89de858.46479539", @@ -41,5 +30,16 @@ "note": "" } ] + }, + { + "id": "board_69170bcc2be8c6.34720864", + "title": "asd", + "tasks": [ + { + "id": "task_691661d89de7a0.19655479", + "title": "Mockups skizzieren", + "note": "" + } + ] } ] \ No newline at end of file