Minor UI/UX improvements in Tweet and TwitterUser
This commit is contained in:
parent
2324324695
commit
4403c822b2
@ -1,14 +1,21 @@
|
||||
accessing
|
||||
asCardElement
|
||||
^ BrHorizontalPane new
|
||||
hFitContent;
|
||||
vFitContent;
|
||||
padding: (BlInsets all: 20);
|
||||
margin: (BlInsets all: 10);
|
||||
addChild: (self user profileImage asElement asScalableElement size: 64@64);
|
||||
addChild: (BrVerticalPane new
|
||||
fitContent;
|
||||
margin: (BlInsets left: 20);
|
||||
addChild: (BrLabel new aptitude: BrGlamorousLabelAptitude; text: self created);
|
||||
addChild: (BrLabel new aptitude: BrGlamorousLabelAptitude; text: self text));
|
||||
when: BlClickEvent do: [:e | e target phlow spawnObject: self]
|
||||
|
||||
^ BrHorizontalPane new
|
||||
hFitContent;
|
||||
vFitContent;
|
||||
padding: (BlInsets all: 20);
|
||||
margin: (BlInsets all: 10);
|
||||
addChild:
|
||||
(self user profileImage asElement asScalableElement size: 64 @ 64);
|
||||
addChild: (BrVerticalPane new
|
||||
fitContent;
|
||||
margin: (BlInsets left: 20);
|
||||
addChild: (BrLabel new
|
||||
aptitude: BrGlamorousLabelAptitude;
|
||||
text: '@' , self user name , ' | ' , self created asString;
|
||||
beSmallSize);
|
||||
addChild: (BrLabel new
|
||||
aptitude: BrGlamorousLabelAptitude;
|
||||
text: self text));
|
||||
when: BlClickEvent do: [ :e | e target phlow spawnObject: self ]
|
@ -19,4 +19,4 @@ asCardElement
|
||||
addChild: (BrLabel new aptitude: BrGlamorousLabelAptitude; text: self name; beLargeSize);
|
||||
addChild: (BrLabel new aptitude: BrGlamorousLabelAptitude; text: 'joined: ', self createdAtShorted);
|
||||
addChild: (BrLabel new aptitude: BrGlamorousLabelAptitude; text: self description));
|
||||
when: BlClickEvent do: [:e | e target phlow spawnObject: self]
|
||||
when: BlClickEvent do: [:e | e target phlow spawnObject: self tweets]
|
Loading…
Reference in New Issue
Block a user