[fleet][ui] Fix offset image; scrollbar flashing; missing assets in Stories (#114406)

This commit is contained in:
Clint Andrew Hall 2021-10-11 04:19:00 -05:00 committed by GitHub
parent 930fe96260
commit 25fef38f12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 5 deletions

View file

@ -36,7 +36,11 @@ export function runStorybookCli({ configDir, name }: { configDir: string; name:
async ({ flags, log }) => {
log.debug('Global config:\n', constants);
const staticDir = [UiSharedDepsNpm.distDir, UiSharedDepsSrc.distDir];
const staticDir = [
UiSharedDepsNpm.distDir,
UiSharedDepsSrc.distDir,
'src/plugins/kibana_react/public/assets:plugins/kibanaReact/assets',
];
const config: Record<string, any> = {
configDir,
mode: flags.site ? 'static' : 'dev',

View file

@ -39,15 +39,13 @@ import { Error, Loading, SettingFlyout } from './components';
import type { UIExtensionsStorage } from './types';
import { EPMApp } from './sections/epm';
import { DefaultLayout, WithoutHeaderLayout } from './layouts';
import { DefaultLayout } from './layouts';
import { PackageInstallProvider } from './hooks';
import { useBreadcrumbs, UIExtensionsContext } from './hooks';
const ErrorLayout = ({ children }: { children: JSX.Element }) => (
<EuiErrorBoundary>
<DefaultLayout>
<WithoutHeaderLayout>{children}</WithoutHeaderLayout>
</DefaultLayout>
<DefaultLayout>{children}</DefaultLayout>
</EuiErrorBoundary>
);

View file

@ -28,6 +28,8 @@ interface Props {
const Illustration = styled(EuiImage)`
margin-bottom: -68px;
position: relative;
top: -20px;
width: 80%;
`;