diff options
| author | AAGaming <aagaming@riseup.net> | 2023-11-09 15:35:32 -0500 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2023-11-09 15:35:32 -0500 |
| commit | 29d651bed66a1859dcfd0ac74406a358ba65867e (patch) | |
| tree | 75d77e8736e1c2893c5d1b2827858ccb15b92415 /frontend/src/components/PluginView.tsx | |
| parent | 44e6f03b0655a9f1e87530141ad907b9553744cc (diff) | |
| download | decky-loader-29d651bed66a1859dcfd0ac74406a358ba65867e.tar.gz decky-loader-29d651bed66a1859dcfd0ac74406a358ba65867e.zip | |
fix: get rid of title view jank on latest beta
Diffstat (limited to 'frontend/src/components/PluginView.tsx')
| -rw-r--r-- | frontend/src/components/PluginView.tsx | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/frontend/src/components/PluginView.tsx b/frontend/src/components/PluginView.tsx index b53035f7..a31053fe 100644 --- a/frontend/src/components/PluginView.tsx +++ b/frontend/src/components/PluginView.tsx @@ -1,12 +1,4 @@ -import { - ButtonItem, - Focusable, - PanelSection, - PanelSectionRow, - joinClassNames, - scrollClasses, - staticClasses, -} from 'decky-frontend-lib'; +import { ButtonItem, Focusable, PanelSection, PanelSectionRow } from 'decky-frontend-lib'; import { VFC, useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { FaEyeSlash } from 'react-icons/fa'; @@ -36,10 +28,7 @@ const PluginView: VFC = () => { return ( <Focusable onCancelButton={closeActivePlugin}> <TitleView /> - <div - className={joinClassNames(staticClasses.TabGroupPanel, scrollClasses.ScrollPanel, scrollClasses.ScrollY)} - style={{ height: '100%' }} - > + <div style={{ height: '100%', paddingTop: '16px' }}> {(visible || activePlugin.alwaysRender) && activePlugin.content} </div> </Focusable> @@ -48,7 +37,11 @@ const PluginView: VFC = () => { return ( <> <TitleView /> - <div className={joinClassNames(staticClasses.TabGroupPanel, scrollClasses.ScrollPanel, scrollClasses.ScrollY)}> + <div + style={{ + paddingTop: '16px', + }} + > <PanelSection> {pluginList .filter((p) => p.content) |
