@@ -113,12 +113,9 @@ function Notification:render()
113
113
end
114
114
115
115
local paddingY , logoSize = 20 , 32
116
- local actionsY = if self .props .actions then 35 else 0
116
+ local actionsY = if self .props .actions then 37 else 0
117
117
local textXSpace = math.max (250 , buttonsX ) + 35
118
- local textBounds = Vector2 .new (
119
- textXSpace ,
120
- getTextBoundsAsync (self .props .text , theme .Font .Main , theme .TextSize .Body , textXSpace ).Y
121
- )
118
+ local textBounds = getTextBoundsAsync (self .props .text , theme .Font .Main , theme .TextSize .Body , textXSpace )
122
119
local contentX = math.max (textBounds .X , buttonsX )
123
120
124
121
local size = self .binding :map (function (value )
@@ -162,10 +159,10 @@ function Notification:render()
162
159
TextColor3 = theme .Notification .InfoColor ,
163
160
TextTransparency = transparency ,
164
161
TextXAlignment = Enum .TextXAlignment .Left ,
165
- TextYAlignment = Enum .TextYAlignment .Top ,
162
+ TextYAlignment = Enum .TextYAlignment .Center ,
166
163
TextWrapped = true ,
167
164
168
- Size = UDim2 .new (1 , - 35 , 1 , - actionsY ),
165
+ Size = UDim2 .new (0 , textBounds . X , 1 , - actionsY ),
169
166
Position = UDim2 .fromOffset (35 , 0 ),
170
167
171
168
LayoutOrder = 1 ,
0 commit comments