Browse Source

maint: some adjust

wangweimin 4 years ago
parent
commit
e6fac5d1fe

+ 5 - 0
docs/static/pywebio.css

@@ -16,3 +16,8 @@
 .sphinx-tabs {
 .sphinx-tabs {
     margin-bottom: 1em;
     margin-bottom: 1em;
 }
 }
+
+/* Table cell */
+td .line-block {
+    margin-bottom: 0 !important;
+}

+ 0 - 1
pywebio/session/threadbased.py

@@ -34,7 +34,6 @@ class ThreadBasedSession(Session):
         curr = id(threading.current_thread())
         curr = id(threading.current_thread())
         session = cls.thread2session.get(curr)
         session = cls.thread2session.get(curr)
         if session is None:
         if session is None:
-            logger.debug("SessionNotFoundException in %s", threading.current_thread())
             raise SessionNotFoundException(
             raise SessionNotFoundException(
                 "Can't find current session. Maybe session closed. Did you forget to use `register_thread` ?")
                 "Can't find current session. Maybe session closed. Did you forget to use `register_thread` ?")
         return session
         return session

+ 1 - 1
webiojs/src/models/input/textarea.ts

@@ -69,7 +69,7 @@ export class Textarea extends InputItem {
             setTimeout(function () {  // 需要等待当前表单显示后,重新计算表单高度
             setTimeout(function () {  // 需要等待当前表单显示后,重新计算表单高度
                 // 重新计算表单高度
                 // 重新计算表单高度
                 that.element.parents('.card').height('auto');
                 that.element.parents('.card').height('auto');
-            }, state.ShowDuration);
+            }, state.ShowDuration+40);
         }
         }
 
 
         return this.element;
         return this.element;