
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html{font-size:16px;}
body{
  width:100vw;
  height: 100vh;
  overflow: hidden;
}


.ant-page{
  width:100%;
  height:100vh;
}


.ant-page-header{
  width:100%;
  height:50px;
  border-bottom:1px solid #ddd;
}

/*
当 affine-editor-container 中的内容超过父容器 .ant-page-body 的高度时，输入内容（特别是回车换行）时光标会移出视口，无法自动滚动跟随。
*/
.ant-page-body {
  height: calc(100vh - 50px);
  overflow: auto;
  scroll-behavior: smooth; /* 平滑滚动 */
}

.ant-page-body>affine-editor-container {
  display: block;
  height: 100%;
  overflow: visible;      /* 关键 */
  position: relative;
}
