Skip to content

Commit da93812

Browse files
Conditionally render offset div (#5997)
Otherwise the address is being offset to the right when the refresh icon is not displayed
1 parent 07a3ee5 commit da93812

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Layout/HomeContent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ function BrowserChrome({children, hasPulse, hasRefresh, domain, path}) {
12741274
<div className="mx-auto max-w-3xl shadow-nav dark:shadow-nav-dark relative overflow-hidden w-full dark:border-opacity-10 rounded-2xl">
12751275
<div className="w-full h-14 rounded-t-2xl shadow-outer-border backdrop-filter overflow-hidden backdrop-blur-lg backdrop-saturate-200 bg-white bg-opacity-90 z-10 absolute top-0 px-3 gap-2 flex flex-row items-center">
12761276
<div className="select-none h-8 relative bg-gray-30/20 text-sm text-tertiary text-center rounded-full w-full flex-row flex space-between items-center">
1277-
<div className="h-4 w-6" />
1277+
{hasRefresh && <div className="h-4 w-6" />}
12781278
<div className="w-full leading-snug flex flex-row items-center justify-center">
12791279
<svg
12801280
className="text-tertiary mr-1 opacity-60"

0 commit comments

Comments
 (0)