better margin top implementation for multiday event in month view #1129
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
with the existing margin top implementation for month view events, there are no gaps between multiday event and it doesn't look that nice.
![image](https://private-user-images.githubusercontent.com/82821523/400292108-ff824870-919d-4fad-bc50-f42f0bfd4a99.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNzc5OTgsIm5iZiI6MTczOTM3NzY5OCwicGF0aCI6Ii84MjgyMTUyMy80MDAyOTIxMDgtZmY4MjQ4NzAtOTE5ZC00ZmFkLWJjNTAtZjQyZjBiZmQ0YTk5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE2MjgxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMwNmM0NjVkYThlNGJmMDE0MzEyZThjOTYwOGY0ZjM1ODFiYTkyNDVjOTJmMDcyMTRhN2ZjZDljNTY0NjVhZjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.c-dzut--DNZBaocMcKbLtOMxtqLSC2KxpBlbfpHmDgE)
By moving margin-top implementation to parent view instead of touchableopacity for the event, it looks neater.
![image](https://private-user-images.githubusercontent.com/82821523/400292246-6c81f1c3-4f92-4bb8-a153-31976064879d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNzc5OTgsIm5iZiI6MTczOTM3NzY5OCwicGF0aCI6Ii84MjgyMTUyMy80MDAyOTIyNDYtNmM4MWYxYzMtNGY5Mi00YmI4LWExNTMtMzE5NzYwNjQ4NzlkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE2MjgxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFmODY5Zjg2MGYyZDljOTZmNDIyY2I1ZTkxNTlhZDAwZDEyYzQwMGZiYzFiY2Q0MGYyZWFlYTBiMzZlMTg1ZDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.j_c8_o90HthCzErxR5k3oCMWNrNKjk2XezLFuW2L7Yo)