mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-12-01 21:05:42 +09:00
fix: simplify publish log presentation
This commit is contained in:
1 parent
77a19e9bdc
commit
9d69e71806
2 files changed
+12
-3
No files matched your search
@@ -423,7 +423,9 @@ test("can maximize Diagnostics and aligns publish content with its title", async
|
||||
const log = document.body.querySelector<HTMLElement>("pre");
|
||||
expect(dialog).not.toBeNull();
|
||||
expect(title).not.toBeNull();
|
||||
expect(title?.tagName).toBe("SPAN");
|
||||
expect(log).not.toBeNull();
|
||||
expect(getComputedStyle(log!).fontFamily).toContain("Roboto Mono");
|
||||
expect(
|
||||
Math.abs(
|
||||
title!.getBoundingClientRect().left - log!.getBoundingClientRect().left
|
||||
|
||||
@@ -19,7 +19,6 @@ import {
|
||||
PanelTabsTrigger,
|
||||
ScrollArea,
|
||||
SectionTitle,
|
||||
SectionTitleLabel,
|
||||
Separator,
|
||||
Text,
|
||||
theme,
|
||||
@@ -380,6 +379,7 @@ export const PublishDiagnosticsDialog = ({
|
||||
<Flex direction="column" gap={2}>
|
||||
<Collapsible.Trigger asChild>
|
||||
<SectionTitle
|
||||
aria-labelledby={`publish-title-${item.buildId}`}
|
||||
suffixPlaceholder={<CopyIcon aria-hidden />}
|
||||
suffix={
|
||||
canViewPublishLogs &&
|
||||
@@ -402,11 +402,17 @@ export const PublishDiagnosticsDialog = ({
|
||||
)
|
||||
}
|
||||
>
|
||||
<SectionTitleLabel>
|
||||
<Text
|
||||
as="span"
|
||||
id={`publish-title-${item.buildId}`}
|
||||
variant="titles"
|
||||
truncate
|
||||
css={{ flex: "0 1 auto", minWidth: 0 }}
|
||||
>
|
||||
{item.domains.length > 0
|
||||
? item.domains.join(", ")
|
||||
: "Static export"}
|
||||
</SectionTitleLabel>
|
||||
</Text>
|
||||
</SectionTitle>
|
||||
</Collapsible.Trigger>
|
||||
<Collapsible.Content asChild>
|
||||
@@ -455,6 +461,7 @@ export const PublishDiagnosticsDialog = ({
|
||||
(item.logState === "available" ? (
|
||||
<Text
|
||||
as="pre"
|
||||
variant="mono"
|
||||
userSelect="text"
|
||||
css={{
|
||||
whiteSpace: "pre-wrap",
|
||||
|
||||
Reference in new issue
Block a user