binwiederhier 3 лет назад
Родитель
Сommit
40ba143a63
3 измененных файлов с 4 добавлено и 12 удалено
  1. 1 1
      web/public/config.js
  2. 2 2
      web/src/components/Account.js
  3. 1 9
      web/src/components/PublishDialog.js

+ 1 - 1
web/public/config.js

@@ -6,7 +6,7 @@
 // During web development, you may change values here for rapid testing.
 
 var config = {
-    base_url: "http://localhost:2586", // window.location.origin FIXME update before merging
+    base_url: "https://127-0-0-1.my.local-ip.co", // window.location.origin FIXME update before merging
     app_root: "/app",
     enable_login: true,
     enable_signup: true,

+ 2 - 2
web/src/components/Account.js

@@ -529,10 +529,10 @@ const TokensTable = (props) => {
                             {token.token === session.token() && <em>{t("account_tokens_table_current_session")}</em>}
                             {token.token !== session.token() && (token.label || "-")}
                         </TableCell>
-                        <TableCell aria-label={t("account_tokens_table_expires_header")}>
+                        <TableCell sx={{ whiteSpace: "nowrap" }} aria-label={t("account_tokens_table_expires_header")}>
                             {token.expires ? formatShortDateTime(token.expires) : <em>{t("account_tokens_table_never_expires")}</em>}
                         </TableCell>
-                        <TableCell aria-label={t("account_tokens_table_last_access_header")}>
+                        <TableCell sx={{ whiteSpace: "nowrap" }} aria-label={t("account_tokens_table_last_access_header")}>
                             <div style={{ display: "flex", alignItems: "center" }}>
                                 <span>{formatShortDateTime(token.last_access)}</span>
                                 <Tooltip title={t("account_tokens_table_last_origin_tooltip", { ip: token.last_origin })}>

+ 1 - 9
web/src/components/PublishDialog.js

@@ -17,15 +17,7 @@ import IconButton from "@mui/material/IconButton";
 import InsertEmoticonIcon from '@mui/icons-material/InsertEmoticon';
 import {Close} from "@mui/icons-material";
 import MenuItem from "@mui/material/MenuItem";
-import {
-    formatBytes,
-    maybeWithAuth,
-    withBasicAuth,
-    topicShortUrl,
-    topicUrl,
-    validTopic,
-    validUrl
-} from "../app/utils";
+import {formatBytes, maybeWithAuth, topicShortUrl, topicUrl, validTopic, validUrl} from "../app/utils";
 import Box from "@mui/material/Box";
 import AttachmentIcon from "./AttachmentIcon";
 import DialogFooter from "./DialogFooter";