Skip to content

Commit 639a9c0

Browse files
authored
fix: img height on pinned posts (#269)
1 parent 8a9c5d3 commit 639a9c0

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.storybook/preview.tsx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {withTheme} from './decorators/withTheme';
1111
import {withLang} from './decorators/withLang';
1212
import {withMobile} from './decorators/withMobile';
1313
import {DocsDecorator} from './decorators/DocsDecorator/DocsDecorator';
14-
import {MobileProvider, ThemeProvider} from '@gravity-ui/uikit';
14+
import {MobileProvider, ThemeProvider, Lang} from '@gravity-ui/uikit';
1515

1616
import {routerData} from '../src/demo/mocks';
1717
import {BlogConstructorProvider} from '../src/constructor/BlogConstructorProvider';
@@ -26,10 +26,25 @@ const withContextProvider: Decorator = (Story, context) => (
2626
</React.StrictMode>
2727
);
2828

29+
const localeEn = {
30+
code: 'en-En',
31+
lang: Lang.En,
32+
langName: 'English',
33+
pathPrefix: 'en',
34+
};
35+
36+
const localeRu = {
37+
code: 'ru-Ru',
38+
lang: Lang.Ru,
39+
langName: 'Russia',
40+
pathPrefix: 'ru',
41+
};
42+
2943
const withBlogConstructorProvider: Decorator = (Story, context) => {
3044
return (
3145
<BlogConstructorProvider
3246
router={routerData}
47+
locale={context.globals.lang === 'en' ? localeEn : localeRu}
3348
isMobile={context.globals.platform === 'mobile'}
3449
>
3550
<Story {...context} />

src/components/PostCard/PostCard.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ $block: '.#{$namespace}post-card';
2626
&__header {
2727
&_fullWidth {
2828
min-height: auto;
29-
height: 100%;
3029

3130
@media (min-width: map-get($gridBreakpoints, 'lg')) {
3231
width: 66%;

0 commit comments

Comments
 (0)