Explorar o código

阅读模式宽度750

visuddhinanda hai 1 ano
pai
achega
1604e2d422
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      dashboard/src/pages/library/article/show.tsx

+ 7 - 1
dashboard/src/pages/library/article/show.tsx

@@ -337,8 +337,14 @@ const Widget = () => {
           style={{ width: `calc(100% - ${rightBarWidth})`, display: "flex" }}
         >
           <div
+            className="article_shell"
             key="Article"
-            style={{ marginLeft: "auto", marginRight: "auto", width: 1100 }}
+            style={{
+              marginLeft: "auto",
+              marginRight: "auto",
+              width: 1100,
+              maxWidth: currMode === "read" ? 750 : "unset",
+            }}
           >
             <LoginAlertModal mode={currMode} />
             {type !== "textbook" ? (