Skip to content

Commit f937633

Browse files
committed
fix: Fix caching
1 parent d3101c2 commit f937633

File tree

3 files changed

+74
-3
lines changed

3 files changed

+74
-3
lines changed

src/app.css

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,77 @@
1+
@layer reset {
2+
*,
3+
*::before,
4+
*::after {
5+
box-sizing: border-box;
6+
}
7+
8+
/* https://kilianvalkhof.com/2022/css-html/your-css-reset-needs-text-size-adjust-probably/ */
9+
html {
10+
-moz-text-size-adjust: none;
11+
-webkit-text-size-adjust: none;
12+
text-size-adjust: none;
13+
}
14+
15+
body,
16+
h1,
17+
h2,
18+
h3,
19+
h4,
20+
p,
21+
figure,
22+
blockquote,
23+
dl,
24+
dd {
25+
margin: 0;
26+
}
27+
28+
/* https://www.scottohara.me/blog/2019/01/12/lists-and-safari.html */
29+
[role="list"] {
30+
list-style: none;
31+
margin: 0;
32+
padding: 0;
33+
}
34+
35+
body {
36+
min-block-size: 100vh;
37+
line-height: 1.6;
38+
}
39+
40+
h1,
41+
h2,
42+
h3,
43+
button,
44+
input,
45+
label {
46+
line-height: 1.1;
47+
}
48+
49+
h1,
50+
h2,
51+
h3,
52+
h4 {
53+
text-wrap: balance;
54+
}
55+
56+
p,
57+
li {
58+
text-wrap: pretty;
59+
}
60+
61+
img,
62+
picture {
63+
max-inline-size: 100%;
64+
display: block;
65+
}
66+
67+
input,
68+
button,
69+
textarea,
70+
select {
71+
font: inherit;
72+
}
73+
}
74+
175
.dcm-preview {
276
position: relative;
377
height: 100%;

src/components/GnomeLibrary/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ const GnomeLibrary = () => {
4242
},
4343
placeholderData: isPaginating ? keepPreviousData : undefined,
4444
structuralSharing: true,
45-
staleTime: 5 * 60 * 1000, // 5 minutes
46-
gcTime: 10 * 60 * 1000, // 10 minutes
4745
refetchOnWindowFocus: false,
4846
refetchOnMount: false,
4947
retry: 1, // Only retry once on failure

src/components/Login/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
} from "@patternfly/react-core";
1010
import { App } from "antd";
1111
import queryString from "query-string";
12-
// src/components/LoginPage/SimpleLoginPage.tsx
1312
import type React from "react";
1413
import { useState } from "react";
1514
import { useCookies } from "react-cookie";

0 commit comments

Comments
 (0)