Skip to content

Commit

Permalink
fix: fix text-size-adjust for IOS devices
Browse files Browse the repository at this point in the history
  • Loading branch information
todti committed Dec 16, 2024
1 parent 7a37670 commit 06d7806
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 13 deletions.
24 changes: 13 additions & 11 deletions packages/core/src/store/store.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {
import type {
AttachmentLink,
AttachmentLinkLinked,
HistoryDataPoint,
Expand All @@ -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 = <T>(indexMap: Map<string, T[]>, key: string | undefined, ...items: T[]) => {
Expand Down Expand Up @@ -201,7 +205,6 @@ export class DefaultAllureStore implements AllureStore, ResultsVisitor {
}

async allHistoryDataPoints(): Promise<HistoryDataPoint[]> {
console.log(this.#history);
return this.#history;
}

Expand Down Expand Up @@ -250,7 +253,6 @@ export class DefaultAllureStore implements AllureStore, ResultsVisitor {
}

async historyByTrId(trId: string): Promise<HistoryTestResult[]> {
console.log(this.#history);
const tr = await this.testResultById(trId);

if (!tr?.historyId) {
Expand Down
4 changes: 3 additions & 1 deletion packages/plugin-awesome/src/generators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
9 changes: 9 additions & 0 deletions packages/web-awesome/src/assets/scss/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*::after {
box-sizing: border-box;
}

html,
body,
div,
Expand Down Expand Up @@ -91,6 +92,7 @@ video {
font: inherit;
vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
Expand All @@ -105,30 +107,37 @@ nav,
section {
display: block;
}

body {
line-height: 1;
}

ol,
ul {
list-style: none;
}

blockquote,
q {
quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
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%;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@

.chart {
position: relative;
display: flex;
}

0 comments on commit 06d7806

Please sign in to comment.