Skip to content

Commit 9acd0b7

Browse files
sami-romdhanaeomttt
authored andcommitted
Conditionally render offset div (#5997)
Otherwise the address is being offset to the right when the refresh icon is not displayed
1 parent 220b5d5 commit 9acd0b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Layout/HomeContent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ function BrowserChrome({children, hasPulse, hasRefresh, domain, path}) {
12631263
<div className="mx-auto max-w-3xl shadow-nav dark:shadow-nav-dark relative overflow-hidden w-full dark:border-opacity-10 rounded-2xl">
12641264
<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">
12651265
<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">
1266-
<div className="h-4 w-6" />
1266+
{hasRefresh && <div className="h-4 w-6" />}
12671267
<div className="w-full leading-snug flex flex-row items-center justify-center">
12681268
<svg
12691269
className="text-tertiary mr-1 opacity-60"

0 commit comments

Comments
 (0)