Skip to content

Commit

Permalink
chore(site): add proxy hack back
Browse files Browse the repository at this point in the history
  • Loading branch information
fshovchko committed Feb 5, 2024
1 parent f8df5a5 commit 4bc99a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions site/src/localdev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import '@exadel/esl/modules/lib';
import './common/breakpoints';

import {
ESLVSizeCSSProxy,
ESLImage,
ESLMedia,
ESLToggleable,
Expand Down Expand Up @@ -55,6 +56,8 @@ import {ESLDemoAnchorLink} from './anchor/anchor-link';
import {ESLDemoBanner} from './banner/banner';
import {ESLDemoSwipeArea, ESLDemoWheelArea} from './esl-events-demo/esl-events-demo';

if (!CSS.supports('(height: 100dvh) or (width: 100dvw)')) ESLVSizeCSSProxy.observe();

// Register Demo components
ESLDemoAutofocus.register();
ESLDemoSidebar.register();
Expand Down
2 changes: 1 addition & 1 deletion site/src/navigation/sidebar/sidebar.less
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ esl-d-sidebar {
@media @md-xl {
position: relative;
top: 0;
height: 100vh;
height: var(--100vh, 100vh);
max-width: 72px;

@supports (height: 100dvh) {
Expand Down
2 changes: 1 addition & 1 deletion site/src/page/base-layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

body {
width: 100%;
height: 100vh;
height: var(--100vh, 100vh);

@supports (height: 100dvh) {
height: 100dvh;
Expand Down

0 comments on commit 4bc99a2

Please sign in to comment.