Просмотр исходного кода

Use dvh for ide-root height to avoid cutoff (#18009)

GitOrigin-RevId: efb452a7192a9d5e81376066cd879cefcfb337a8
Alf Eaton 2 лет назад
Родитель
Сommit
702615acc9
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      services/web/frontend/stylesheets/app/editor/ide-react.less

+ 2 - 1
services/web/frontend/stylesheets/app/editor/ide-react.less

@@ -1,5 +1,6 @@
 #ide-root {
-  height: 100vh;
+  height: 100vh; /* for backwards compatibility */
+  height: 100dvh; /* needed for mobile devices */
 
   .global-alerts {
     position: absolute;