Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added moon icon for when the light mode is active, removed oddly big …
…gap between sign-in and color-mode button (#1989) Hey, I improved the color-mode button so that when the light mode is active a moon-icon is shown: ![image](https://user-images.githubusercontent.com/25230234/223041608-45fde435-a74f-4788-8370-1da88784a108.png) A small, second change: When the user is not signed in the gap between the sign-in button and the color-mode toggler is oddly big: ![image](https://user-images.githubusercontent.com/25230234/223039079-695e535c-802e-4d04-ac50-e46764da98c0.png) The reason is that even when the user score is ``null`` the div around the ``<UserScore />`` component is still rendered: ```html <div className="hidden md:block"> <UserScore /> </div> ``` It seems that this can be solved by moving the outter div inside the ``<UserScore />`` component: ```html <div className="hidden md:block"> <HStack gap="1" title={t("score")}> <>{score}</> <Icon as={Star} fill="gold" w="5" h="5" color="gold" /> </HStack> </div> ``` --------- Co-authored-by: Oliver Stanley <olivergestanley@gmail.com>
- Loading branch information