Adam 2 месяцев назад
Родитель
Сommit
f354507d42
2 измененных файлов с 12 добавлено и 3 удалено
  1. 7 1
      packages/desktop/src/pages/session.tsx
  2. 5 2
      packages/enterprise/src/routes/share/[shareID].tsx

+ 7 - 1
packages/desktop/src/pages/session.tsx

@@ -355,7 +355,13 @@ export default function Page() {
                         classes={{
                         classes={{
                           root: "pb-20 flex-1 min-w-0",
                           root: "pb-20 flex-1 min-w-0",
                           content: "pb-20",
                           content: "pb-20",
-                          container: "w-full " + (wide() ? "max-w-146 mx-auto px-6" : "pr-6 pl-18"),
+                          container:
+                            "w-full " +
+                            (wide()
+                              ? "max-w-146 mx-auto px-6"
+                              : session.messages.user().length > 1
+                                ? "pr-6 pl-18"
+                                : "px-6"),
                         }}
                         }}
                         diffComponent={Diff}
                         diffComponent={Diff}
                       />
                       />

+ 5 - 2
packages/enterprise/src/routes/share/[shareID].tsx

@@ -284,7 +284,8 @@ export default function () {
                             classList={{
                             classList={{
                               "w-full flex justify-start items-start min-w-0": true,
                               "w-full flex justify-start items-start min-w-0": true,
                               "max-w-146 mx-auto px-6": wide(),
                               "max-w-146 mx-auto px-6": wide(),
-                              "pr-6 pl-18": !wide(),
+                              "pr-6 pl-18": !wide() && messages().length > 1,
+                              "px-6": !wide() && messages().length === 1,
                             }}
                             }}
                           >
                           >
                             {title()}
                             {title()}
@@ -302,7 +303,9 @@ export default function () {
                               classes={{
                               classes={{
                                 root: "grow",
                                 root: "grow",
                                 content: "flex flex-col justify-between items-start",
                                 content: "flex flex-col justify-between items-start",
-                                container: "w-full pb-20 " + (wide() ? "max-w-146 mx-auto px-6" : "pr-6 pl-18"),
+                                container:
+                                  "w-full pb-20 " +
+                                  (wide() ? "max-w-146 mx-auto px-6" : messages().length > 1 ? "pr-6 pl-18" : "px-6"),
                               }}
                               }}
                               diffComponent={ClientOnlyDiff}
                               diffComponent={ClientOnlyDiff}
                             >
                             >