From 06d78066eac4d4f61a6f6bbd79bb4ad67739a93a Mon Sep 17 00:00:00 2001 From: Todti Date: Mon, 16 Dec 2024 08:41:31 +0100 Subject: [PATCH] fix: fix text-size-adjust for IOS devices --- packages/core/src/store/store.ts | 24 ++++++++++--------- packages/plugin-awesome/src/generators.ts | 4 +++- .../web-awesome/src/assets/scss/_common.scss | 9 +++++++ .../commons/SuccessRatePieChart/styles.scss | 1 - 4 files changed, 25 insertions(+), 13 deletions(-) diff --git a/packages/core/src/store/store.ts b/packages/core/src/store/store.ts index ff2d5c9..6a4f5b7 100644 --- a/packages/core/src/store/store.ts +++ b/packages/core/src/store/store.ts @@ -1,4 +1,4 @@ -import { +import type { AttachmentLink, AttachmentLinkLinked, HistoryDataPoint, @@ -8,16 +8,20 @@ import { TestCase, TestFixtureResult, TestResult, - compareBy, - nullsLast, - ordinal, - reverse, } from "@allurereport/core-api"; -import { AllureStore, ResultFile, md5 } from "@allurereport/plugin-api"; -import type { RawFixtureResult, RawMetadata, RawTestResult, ReaderContext, ResultsVisitor } from "@allurereport/reader-api"; -import { EventEmitter } from "node:events"; +import { compareBy, nullsLast, ordinal, reverse } from "@allurereport/core-api"; +import type { AllureStore, ResultFile } from "@allurereport/plugin-api"; +import { md5 } from "@allurereport/plugin-api"; +import type { + RawFixtureResult, + RawMetadata, + RawTestResult, + ReaderContext, + ResultsVisitor, +} from "@allurereport/reader-api"; +import type { EventEmitter } from "node:events"; import { extname } from "node:path"; -import { AllureStoreEvents } from "../utils/event.js"; +import type { AllureStoreEvents } from "../utils/event.js"; import { testFixtureResultRawToState, testResultRawToState } from "./convert.js"; const index = (indexMap: Map, key: string | undefined, ...items: T[]) => { @@ -201,7 +205,6 @@ export class DefaultAllureStore implements AllureStore, ResultsVisitor { } async allHistoryDataPoints(): Promise { - console.log(this.#history); return this.#history; } @@ -250,7 +253,6 @@ export class DefaultAllureStore implements AllureStore, ResultsVisitor { } async historyByTrId(trId: string): Promise { - console.log(this.#history); const tr = await this.testResultById(trId); if (!tr?.historyId) { diff --git a/packages/plugin-awesome/src/generators.ts b/packages/plugin-awesome/src/generators.ts index 946e482..c41ab21 100644 --- a/packages/plugin-awesome/src/generators.ts +++ b/packages/plugin-awesome/src/generators.ts @@ -215,7 +215,9 @@ export const generateStaticFiles = async ( if (!payload.singleFile) { for (const key in manifest) { const fileName = manifest[key]; - const filePath = require.resolve(join("@allurereport/web-awesome/dist", singleFile ? "single" : "multi", fileName)); + const filePath = require.resolve( + join("@allurereport/web-awesome/dist", singleFile ? "single" : "multi", fileName), + ); if (key.includes(".woff")) { headTags.push(createFontLinkTag(fileName)); diff --git a/packages/web-awesome/src/assets/scss/_common.scss b/packages/web-awesome/src/assets/scss/_common.scss index 62818d8..bb2e49f 100644 --- a/packages/web-awesome/src/assets/scss/_common.scss +++ b/packages/web-awesome/src/assets/scss/_common.scss @@ -3,6 +3,7 @@ *::after { box-sizing: border-box; } + html, body, div, @@ -91,6 +92,7 @@ video { font: inherit; vertical-align: baseline; } + /* HTML5 display-role reset for older browsers */ article, aside, @@ -105,17 +107,21 @@ nav, section { display: block; } + body { line-height: 1; } + ol, ul { list-style: none; } + blockquote, q { quotes: none; } + blockquote:before, blockquote:after, q:before, @@ -123,12 +129,15 @@ q:after { content: ""; content: none; } + table { border-collapse: collapse; border-spacing: 0; } + body { color: var(--on-text-primary); background: var(--bg-base-secondary); font-family: var(--font-family); + -webkit-text-size-adjust: 100%; } diff --git a/packages/web-awesome/src/components/commons/SuccessRatePieChart/styles.scss b/packages/web-awesome/src/components/commons/SuccessRatePieChart/styles.scss index f5803f3..73c3d18 100644 --- a/packages/web-awesome/src/components/commons/SuccessRatePieChart/styles.scss +++ b/packages/web-awesome/src/components/commons/SuccessRatePieChart/styles.scss @@ -8,5 +8,4 @@ .chart { position: relative; - display: flex; }