Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/warm-icons-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@youversion/platform-react-ui': patch
'@youversion/platform-core': patch
'@youversion/platform-react-hooks': patch
---

Fixed a styling bug on the BibleReader.Toolbar component. When auth was disabled in the YouVersionProvider, then it caused a layout issue on the toolbar.
7 changes: 6 additions & 1 deletion packages/ui/src/components/bible-reader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,12 @@ function Toolbar({ border = 'top' }: { border?: 'top' | 'bottom' }) {
border === 'bottom' && 'yv:border-b',
)}
>
<div className="yv:grid yv:w-full yv:grid-cols-[auto_1fr_auto] yv:items-center yv:max-w-lg yv:gap-4">
<div
className={cn(
'yv:grid yv:w-full yv:items-center yv:max-w-lg yv:gap-4',
yvContext?.authEnabled ? 'yv:grid-cols-[auto_1fr_auto]' : 'yv:grid-cols-[1fr_auto]',
)}
>
{!!yvContext?.authEnabled && <UserMenu />}

<div className="yv:grid yv:grid-cols-2 yv:gap-0.5">
Expand Down