Skip to content

Commit

Permalink
refactor: more css rule improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
datawhores committed Dec 30, 2024
1 parent 4b7b080 commit 6b7beee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
14 changes: 7 additions & 7 deletions ofscraper/classes/table/compose.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from textual.containers import Container, Horizontal, Vertical,HorizontalGroup,VerticalGroup
from textual.containers import Container, Horizontal, Vertical,VerticalScroll,VerticalGroup,HorizontalGroup
from textual.widgets import Button, ContentSwitcher, Rule,Static

from ofscraper.classes.table.fields.datefield import DateField
Expand All @@ -17,12 +17,12 @@


def composer():
with Horizontal(id="buttons"):
with HorizontalGroup(id="buttons"):
yield Button("DataTable", id="table")
yield Button("Console", id="console")

with ContentSwitcher(initial="table_page"):
with VerticalGroup(id="table_page"):
with VerticalScroll(id="table_page"):
with Container(id="table_header"):
with Horizontal():
with Vertical(classes="table_info"):
Expand All @@ -38,10 +38,10 @@ def composer():
yield Static("",classes="search_info",shrink=True,markup=True)
yield Rule()
with HorizontalGroup(id="data"):
yield Button("Reset", id="reset")
yield Button(
">> Send Downloads to OF-Scraper", id="send_downloads"
)
yield Button("Reset", id="reset")
yield Button(
">> Send Downloads to OF-Scraper", id="send_downloads"
)
with VerticalGroup(id="table_main"):
yield DataTable(id="data_table")
yield DataTable(id="data_table_hidden")
Expand Down
12 changes: 5 additions & 7 deletions ofscraper/classes/table/css.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
}
Screen {
layers: sidebar;
overflow-y:scroll;
overflow-x:scroll;
overflow-y:hidden;
overflow-x:hidden;
}
Button{
Expand All @@ -20,10 +20,9 @@

Table="""
#data_table{
margin-bottom:5;
margin-top:2;
height:70%;
min-height:40;
margin-bottom:4;
margin-top:1;
min-height:120;
}
#data_table_hidden {
Expand All @@ -32,7 +31,6 @@
#table_main{
height:70%;
min-height:50;
}
#table_header{
height:30%;
Expand Down

0 comments on commit 6b7beee

Please sign in to comment.