git.iko.soy/rowtype-yoga/purescript-yoga-react-native
on main help sign in
Fix video play button, add rounded corners to stickers and GIFs
commite50eed932ef8fa96610e543182142c6534747405 authorMark <mark.eibes@gmail.com> dateSat 14 Feb 2026, 09:23 (8 months ago) parent3a69a27
2 files changed+4−4
example-macos/macos/YogaReactExample-macOS/RCTMacOSControlsManager.m+2 example-macos/src/Main.purs+2−4
example-macos/macos/YogaReactExample-macOS/RCTMacOSControlsManager.m+2
@@ -1577,6 +1577,8 @@ RCT_EXPORT_VIEW_PROPERTY(muted, BOOL)
15771577
15781578- (instancetype)initWithFrame:(NSRect)frame {
15791579 if (self = [super initWithFrame:frame]) {
1580+ self.wantsLayer = YES;
1581+ self.layer.masksToBounds = YES;
15801582 _imageView = [[NSImageView alloc] initWithFrame:self.bounds];
15811583 _imageView.imageScaling = NSImageScaleProportionallyUpOrDown;
15821584 _imageView.imageAlignment = NSImageAlignCenter;
example-macos/src/Main.purs+2−4
@@ -737,13 +737,11 @@ chatTab = component "ChatTab" \p -> React.do
737737 ]
738738 else if msg.kind == "gif" then
739739 view
740− { style: tw "rounded-2xl overflow-hidden"
741− <> Style.style { alignSelf: align }
742− }
740+ { style: Style.style { alignSelf: align } }
743741 [ nativeAnimatedImage
744742 { source: msg.body
745743 , animating: true
746− , style: Style.style { width: 240.0, height: 180.0 }
744+ , style: tw "rounded-2xl" <> Style.style { width: 240.0, height: 180.0 }
747745 }
748746 ]
749747 else if msg.kind == "video" then