File tree Expand file tree Collapse file tree 5 files changed +20
-5
lines changed Expand file tree Collapse file tree 5 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ def build(self):
60
60
ListTile (
61
61
leading = Icon (
62
62
utils .TuttleComponentIcons .client_icon ,
63
- size = dimens .ICON_SIZE ,
63
+ size = dimens .MD_ICON_SIZE ,
64
64
),
65
65
title = views .TBodyText (self .client .name ),
66
66
trailing = editor_controls ,
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ def build(self):
48
48
ListTile (
49
49
leading = Icon (
50
50
utils .TuttleComponentIcons .contact_icon ,
51
- size = dimens .ICON_SIZE ,
51
+ size = dimens .MD_ICON_SIZE ,
52
52
),
53
53
title = views .TBodyText (utils .truncate_str (self .contact .name )),
54
54
subtitle = views .TBodyText (
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ def build(self):
60
60
ListTile (
61
61
leading = Icon (
62
62
utils .TuttleComponentIcons .contract_icon ,
63
- size = dimens .ICON_SIZE ,
63
+ size = dimens .MD_ICON_SIZE ,
64
64
),
65
65
title = views .TBodyText (self .contract .title ),
66
66
subtitle = views .TBodyText (
Original file line number Diff line number Diff line change 40
40
class Spacer (Container ):
41
41
"""Creates a space between controls"""
42
42
43
+ # FIXME: Unpythonic code, replace with
44
+ # class Spacer(Container):
45
+ # SPACE_SIZES = {
46
+ # 'lg': 40,
47
+ # 'md': 20,
48
+ # 'sm': 10,
49
+ # 'xs': 5,
50
+ # None: 15,
51
+ # }
52
+
53
+ # def __init__(self, size=None, **kwargs):
54
+ # self._space_size = self.SPACE_SIZES[size]
55
+ # super().__init__(height=self._space_size, width=self._space_size, **kwargs)
56
+
43
57
def __init__ (
44
58
self ,
45
59
lg_space : bool = False ,
@@ -827,7 +841,7 @@ def __init__(
827
841
leading = Container (
828
842
content = TSubHeading (
829
843
subtitle = title ,
830
- align = utils .START_ALIGNMENT ,
844
+ align = utils .TXT_ALIGN_LEFT ,
831
845
expand = True ,
832
846
color = colors .GRAY_DARK_COLOR ,
833
847
),
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ def build(self):
58
58
ListTile (
59
59
leading = Icon (
60
60
utils .TuttleComponentIcons .project_icon ,
61
- size = dimens .ICON_SIZE ,
61
+ size = dimens .MD_ICON_SIZE ,
62
62
),
63
63
title = views .TBodyText (self .project .title ),
64
64
subtitle = views .TBodyText (
@@ -76,6 +76,7 @@ def build(self):
76
76
on_click = lambda e : self .on_view_details_clicked (self .project .id ),
77
77
),
78
78
views .Spacer (md_space = True ),
79
+ views .Spacer (md_space = True ),
79
80
ResponsiveRow (
80
81
controls = [
81
82
views .TBodyText (
You can’t perform that action at this time.
0 commit comments