cleanup of add screen
This commit is contained in:
parent
73ef9c2c27
commit
f36f13a30b
1 changed files with 4 additions and 10 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
import asyncio
|
import asyncio
|
||||||
from textual.app import ComposeResult
|
from textual.app import ComposeResult
|
||||||
from textual.widgets import Input, Label, Button, Static, TextArea
|
from textual.widgets import Input, Label, Button, Static, TextArea
|
||||||
from textual.containers import Container, Vertical
|
from textual.containers import Container, Vertical, Horizontal
|
||||||
from textual.binding import Binding
|
from textual.binding import Binding
|
||||||
|
|
||||||
from cognee.cli.tui.base_screen import BaseTUIScreen
|
from cognee.cli.tui.base_screen import BaseTUIScreen
|
||||||
|
|
@ -25,6 +25,7 @@ class AddTUIScreen(BaseTUIScreen):
|
||||||
#add-container {
|
#add-container {
|
||||||
height: auto;
|
height: auto;
|
||||||
padding: 1;
|
padding: 1;
|
||||||
|
content-align: center middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
#add-form {
|
#add-form {
|
||||||
|
|
@ -59,11 +60,6 @@ class AddTUIScreen(BaseTUIScreen):
|
||||||
min-height: 8;
|
min-height: 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
#submit-btn {
|
|
||||||
width: 20;
|
|
||||||
margin-top: 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
#status-message {
|
#status-message {
|
||||||
margin-top: 2;
|
margin-top: 2;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
@ -100,13 +96,11 @@ class AddTUIScreen(BaseTUIScreen):
|
||||||
value="main_dataset",
|
value="main_dataset",
|
||||||
id="dataset-input"
|
id="dataset-input"
|
||||||
)
|
)
|
||||||
|
yield Static("", id="status-message")
|
||||||
yield Button("Add Data [Ctrl+S]", variant="primary", id="submit-btn")
|
|
||||||
yield Static("", id="status-message")
|
|
||||||
|
|
||||||
def compose_footer(self) -> ComposeResult:
|
def compose_footer(self) -> ComposeResult:
|
||||||
yield Static(
|
yield Static(
|
||||||
"Ctrl+S: Submit • Esc: Back • q: Quit",
|
"Ctrl+S: Add • Esc: Back • q: Quit",
|
||||||
id="add-footer"
|
id="add-footer"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue