Jelajahi Sumber

chore: remove dialog overflow-scroll

dongchengjie 11 bulan lalu
induk
melakukan
df6e245e5c
1 mengubah file dengan 7 tambahan dan 1 penghapusan
  1. 7 1
      src/components/profile/editor-viewer.tsx

+ 7 - 1
src/components/profile/editor-viewer.tsx

@@ -162,7 +162,13 @@ export const EditorViewer = <T extends Language>(props: Props<T>) => {
     <Dialog open={open} onClose={onClose} maxWidth="xl" fullWidth>
       <DialogTitle>{title}</DialogTitle>
 
-      <DialogContent sx={{ width: "auto", height: "calc(100vh - 185px)" }}>
+      <DialogContent
+        sx={{
+          width: "auto",
+          height: "calc(100vh - 185px)",
+          overflow: "hidden",
+        }}
+      >
         <MonacoEditor
           language={language}
           theme={themeMode === "light" ? "vs" : "vs-dark"}