Browse Source

给注释块加高度限制与滚动条

bhikkhu-kosalla-china 3 năm trước cách đây
mục cha
commit
6f51610b89
2 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 1 0
      public/app/article/style.css
  2. 5 2
      public/app/term/term.css

+ 1 - 0
public/app/article/style.css

@@ -204,6 +204,7 @@ img {
 */
 .tool_bar {
 	display: flex;
+	position: relative;
 }
 
 

+ 5 - 2
public/app/term/term.css

@@ -489,6 +489,8 @@ note:hover .add_new {
 	min-height: 1em;
 	transition: all 0.2s ease;
 	display: none;
+	max-height: 50vh;
+	overflow: scroll;
 }
 .tool_bar {
 	display: flex;
@@ -722,7 +724,7 @@ pw {
 }
 .tool_bar > .right {
 	position: absolute;
-	right: 2em;
+	left: 2em;
 	margin-top: calc(-1.8em - 8px);
 	display: none;
 	width: auto;
@@ -737,7 +739,7 @@ pw {
     width: fit-content;
 }
 .translation>.sent_tran_inner>.tool_bar > .right{
-    right: 2em;
+    left: 2em;
 }
 
 .sent_tran_inner:hover > .tool_bar > .right {
@@ -766,6 +768,7 @@ pw {
 
 .sent_tran.commentary>.sent_tran_inner{
     padding-top: 2.2em;
+	position: relative;
 }
 .body > .edit {
 	display: none;