fix(ui): Fix settings navigation horizontal scroll issues (#987)

pull/989/head
TheCatLady 4 years ago committed by GitHub
parent 40b07c35d4
commit 8701fb20d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -122,20 +122,18 @@ const SettingsLayout: React.FC = ({ children }) => {
))}
</select>
</div>
<div className="hidden sm:block">
<div className="border-b border-gray-600">
<nav className="flex -mb-px">
{settingsRoutes.map((route, index) => (
<SettingsLink
route={route.route}
regex={route.regex}
key={`standard-settings-link-${index}`}
>
{route.text}
</SettingsLink>
))}
</nav>
</div>
<div className="hidden overflow-x-scroll overflow-y-hidden border-b border-gray-600 sm:block hide-scrollbar">
<nav className="flex -mb-px">
{settingsRoutes.map((route, index) => (
<SettingsLink
route={route.route}
regex={route.regex}
key={`standard-settings-link-${index}`}
>
{route.text}
</SettingsLink>
))}
</nav>
</div>
</div>
<div className="mt-10 text-white">{children}</div>

@ -311,7 +311,7 @@ const SettingsNotifications: React.FC = ({ children }) => {
))}
</select>
</div>
<div className="hidden sm:block">
<div className="hidden overflow-x-scroll overflow-y-hidden sm:block hide-scrollbar">
<nav className="flex space-x-4" aria-label="Tabs">
{settingsRoutes.map((route, index) => (
<SettingsLink

Loading…
Cancel
Save