Skip to content

Commit 7cbdcdd

Browse files
committed
feat(frontend): make mongodb connection very simple
1 parent abe35dd commit 7cbdcdd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

frontend/src/components/table.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,10 @@ const TData: FC<ITDataProps> = ({ cell, onCellUpdate, disableEdit }) => {
217217
transform: "unset",
218218
}}
219219
animate={{
220-
top: preview ? "25vh" : "35vh",
221-
left: "25vw",
222-
height: preview ? "50vh" : "30vh",
223-
width: "50vw",
220+
top: "20vh",
221+
left: "20vw",
222+
height: "60vh",
223+
width: "60vw",
224224
}}
225225
exit={{
226226
top: cellRect.top,

frontend/src/pages/auth/login.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export const LoginPage: FC = () => {
168168
setUsername(url.username);
169169
setPassword(url.password);
170170
setDatabase(url.pathname.substring(1));
171-
setAdvancedForm({ "Port": url.port, "URL Params": `?${url.searchParams.toString()}` });
171+
setAdvancedForm({ "Port": url.port.length > 0 ? url.port : "80", "URL Params": `?${url.searchParams.toString()}` });
172172
if (url.port != null || url.searchParams.size !== 0) {
173173
setShowAdvanced(true);
174174
}

0 commit comments

Comments
 (0)