mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 21:04:37 +03:00
Fix localForage infinite loop, set base font-size to 14px, and tweak
styles
This commit is contained in:
@@ -27,7 +27,7 @@ export const GalleryList: React.FC = () => {
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Preview</th>
|
<th>Preview</th>
|
||||||
<th>Path</th>
|
<th className="d-none d-sm-none">Path</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -38,6 +38,7 @@ export const GalleryList: React.FC = () => {
|
|||||||
{gallery.files.length > 0 ? (
|
{gallery.files.length > 0 ? (
|
||||||
<img
|
<img
|
||||||
alt={gallery.title ?? ""}
|
alt={gallery.title ?? ""}
|
||||||
|
className="w-100 w-sm-auto"
|
||||||
src={`${gallery.files[0].path}?thumb=true`}
|
src={`${gallery.files[0].path}?thumb=true`}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
@@ -45,7 +46,7 @@ export const GalleryList: React.FC = () => {
|
|||||||
)}
|
)}
|
||||||
</Link>
|
</Link>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td className="d-none d-sm-block">
|
||||||
<Link to={`/galleries/${gallery.id}`}>{gallery.path}</Link>
|
<Link to={`/galleries/${gallery.id}`}>{gallery.path}</Link>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ export const PerformerDetailsPanel: React.FC<IPerformerDetails> = ({
|
|||||||
<div>
|
<div>
|
||||||
{queryableScrapers
|
{queryableScrapers
|
||||||
? queryableScrapers.map(s => (
|
? queryableScrapers.map(s => (
|
||||||
<div>
|
<div key={s.name}>
|
||||||
<Button
|
<Button
|
||||||
key={s.name}
|
key={s.name}
|
||||||
className="minimal"
|
className="minimal"
|
||||||
@@ -390,7 +390,7 @@ export const PerformerDetailsPanel: React.FC<IPerformerDetails> = ({
|
|||||||
{maybeRenderName()}
|
{maybeRenderName()}
|
||||||
{maybeRenderAliases()}
|
{maybeRenderAliases()}
|
||||||
{TableUtils.renderInputGroup({
|
{TableUtils.renderInputGroup({
|
||||||
title: "Birthdate (YYYY-MM-DD)",
|
title: "Birthdate",
|
||||||
value: birthdate,
|
value: birthdate,
|
||||||
isEditing: !!isEditing,
|
isEditing: !!isEditing,
|
||||||
onChange: setBirthdate
|
onChange: setBirthdate
|
||||||
@@ -409,7 +409,7 @@ export const PerformerDetailsPanel: React.FC<IPerformerDetails> = ({
|
|||||||
onChange: setCountry
|
onChange: setCountry
|
||||||
})}
|
})}
|
||||||
{TableUtils.renderInputGroup({
|
{TableUtils.renderInputGroup({
|
||||||
title: "Height (CM)",
|
title: "Height (cm)",
|
||||||
value: height,
|
value: height,
|
||||||
isEditing: !!isEditing,
|
isEditing: !!isEditing,
|
||||||
onChange: setHeight
|
onChange: setHeight
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ export const Settings: React.FC = () => {
|
|||||||
<Nav.Item>
|
<Nav.Item>
|
||||||
<Nav.Link eventKey="about">About</Nav.Link>
|
<Nav.Link eventKey="about">About</Nav.Link>
|
||||||
</Nav.Item>
|
</Nav.Item>
|
||||||
|
<hr className="d-sm-none" />
|
||||||
</Nav>
|
</Nav>
|
||||||
</Col>
|
</Col>
|
||||||
<Col sm={10}>
|
<Col sm={10}>
|
||||||
|
|||||||
@@ -39,10 +39,14 @@ function useLocalForage(
|
|||||||
const serialized = await localForage.getItem<string>(key);
|
const serialized = await localForage.getItem<string>(key);
|
||||||
const parsed = JSON.parse(serialized);
|
const parsed = JSON.parse(serialized);
|
||||||
if (!Object.is(parsed, null)) {
|
if (!Object.is(parsed, null)) {
|
||||||
setError(null);
|
|
||||||
setData(parsed);
|
setData(parsed);
|
||||||
Cache[key] = parsed;
|
Cache[key] = parsed;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
setData({});
|
||||||
|
Cache[key] = {};
|
||||||
|
}
|
||||||
|
setError(null);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
setError(err);
|
setError(err);
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@@ -13,6 +13,10 @@
|
|||||||
@import "src/components/Tags/styles.scss";
|
@import "src/components/Tags/styles.scss";
|
||||||
@import "src/components/Wall/styles.scss";
|
@import "src/components/Wall/styles.scss";
|
||||||
|
|
||||||
|
html {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
color: $text-color;
|
color: $text-color;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
@@ -284,6 +288,16 @@ code {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.top-nav {
|
.top-nav {
|
||||||
|
padding: .25rem 1rem;
|
||||||
|
|
||||||
|
.nav-link {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 576px) {
|
@media (max-width: 576px) {
|
||||||
.btn {
|
.btn {
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
|
|||||||
Reference in New Issue
Block a user