diff --git a/frontend/src/css/keyboard.scss b/frontend/src/css/keyboard.scss
index 8ea1783e300a78ffb9f2a775fb2970861543fb40..6c29fe817cb1737d69d60d26693b0d46dcb05dc3 100644
--- a/frontend/src/css/keyboard.scss
+++ b/frontend/src/css/keyboard.scss
@@ -13,7 +13,7 @@ $key-width: 8vw; // 100/12 ~ 8.3
   overflow: hidden;
   width: 100%;
   height: 100%;
-  max-height: 30vh;
+  max-height: min(40vh, 6 * $key-width);
 
   /* rows layout */