mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
Conditionally render offset div (#5997)
Otherwise the address is being offset to the right when the refresh icon is not displayed
This commit is contained in:
@@ -1274,7 +1274,7 @@ function BrowserChrome({children, hasPulse, hasRefresh, domain, path}) {
|
||||
<div className="mx-auto max-w-3xl shadow-nav dark:shadow-nav-dark relative overflow-hidden w-full dark:border-opacity-10 rounded-2xl">
|
||||
<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">
|
||||
<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">
|
||||
<div className="h-4 w-6" />
|
||||
{hasRefresh && <div className="h-4 w-6" />}
|
||||
<div className="w-full leading-snug flex flex-row items-center justify-center">
|
||||
<svg
|
||||
className="text-tertiary mr-1 opacity-60"
|
||||
|
||||
Reference in New Issue
Block a user