new intarfece
This commit is contained in:
@@ -4,8 +4,8 @@ import designer as ds
|
||||
class MainPageUser(ft.Column):
|
||||
def __init__(self, page: ft.Page):
|
||||
self._page = page
|
||||
self.spacing_groop = 6
|
||||
self.border_radius = 15
|
||||
self.spacing_groop = ds.s(6)
|
||||
self.border_radius = ds.s(15)
|
||||
|
||||
super().__init__(
|
||||
alignment=ft.MainAxisAlignment.CENTER,
|
||||
@@ -20,8 +20,8 @@ class MainPageUser(ft.Column):
|
||||
controls=[
|
||||
ft.Container(
|
||||
border_radius=self.border_radius,
|
||||
height=160,
|
||||
width=160,
|
||||
height=ds.s(160),
|
||||
width=ds.s(160),
|
||||
alignment=ft.Alignment(0.0, 0.0),
|
||||
content=ft.Column(
|
||||
alignment=ft.MainAxisAlignment.CENTER,
|
||||
@@ -31,8 +31,8 @@ class MainPageUser(ft.Column):
|
||||
controls=[
|
||||
ft.Image(
|
||||
src="icons/clipboard-question_16542596.svg",
|
||||
width=100,
|
||||
height=100,
|
||||
width=ds.s(100),
|
||||
height=ds.s(100),
|
||||
)
|
||||
]
|
||||
),
|
||||
@@ -50,8 +50,8 @@ class MainPageUser(ft.Column):
|
||||
),
|
||||
ft.Container(
|
||||
border_radius=self.border_radius,
|
||||
height=160,
|
||||
width=160,
|
||||
height=ds.s(160),
|
||||
width=ds.s(160),
|
||||
alignment=ft.Alignment(0.0, 0.0),
|
||||
content=ft.Column(
|
||||
alignment=ft.MainAxisAlignment.CENTER,
|
||||
@@ -61,8 +61,8 @@ class MainPageUser(ft.Column):
|
||||
controls=[
|
||||
ft.Image(
|
||||
src="icons/leaderboard-trophy_14227576.svg",
|
||||
width=100,
|
||||
height=100,
|
||||
width=ds.s(100),
|
||||
height=ds.s(100),
|
||||
)
|
||||
]
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user