Skip to content

Commit

Permalink
Fix owner badge position while loading (#6285)
Browse files Browse the repository at this point in the history
**Problem:**

The owner badge is shown in a really bad place for the single player
user bar which is displayed while loading the editor/LB.


https://github.com/user-attachments/assets/b3922933-7cd6-444b-b1d2-a95b9aa4e38b


**Fix:**

Make the bar itself use `position: relative`.

_Note: we could also just remove the owner badge at all from single user
bar, but I kept it for now to not change anything functionally._
  • Loading branch information
ruggi authored Sep 2, 2024
1 parent 2457ed4 commit c27fe2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/src/components/user-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
getConnectionById,
useCollaborators,
useConnections,
useMyUserAndPresence,
} from '../core/commenting/comment-hooks'
import type { FollowTarget, MultiplayerColor } from '../core/shared/multiplayer'
import {
Expand Down Expand Up @@ -93,6 +92,7 @@ const SinglePlayerUserBar = React.memo(() => {
<FlexRow
onClick={handleCopyToClipboard}
css={{
position: 'relative',
background: colorTheme.primary30.value,
borderRadius: 24,
height: 24,
Expand Down

0 comments on commit c27fe2e

Please sign in to comment.