Lower dense quest min-height floor to 58px
This commit is contained in:
@@ -2292,7 +2292,7 @@ class Be extends C {
|
|||||||
Math.max(8, Math.floor((a - r * 74) / Math.max(r - 1, 1)))
|
Math.max(8, Math.floor((a - r * 74) / Math.max(r - 1, 1)))
|
||||||
), u = Math.min(
|
), u = Math.min(
|
||||||
116,
|
116,
|
||||||
Math.max(74, Math.floor((a - (r - 1) * p) / r))
|
Math.max(58, Math.floor((a - (r - 1) * p) / r))
|
||||||
), d = Math.max(56, Math.min(72, u - 2));
|
), d = Math.max(56, Math.min(72, u - 2));
|
||||||
let h = `--nq-p-quest-gap: ${p}px; --nq-p-quest-min-height: ${u}px; --nq-p-button-height: ${d}px`;
|
let h = `--nq-p-quest-gap: ${p}px; --nq-p-quest-min-height: ${u}px; --nq-p-button-height: ${d}px`;
|
||||||
if (r >= 5) {
|
if (r >= 5) {
|
||||||
|
|||||||
@@ -1176,7 +1176,7 @@ export class NestQuestQuestLogCard extends LitElement {
|
|||||||
);
|
);
|
||||||
const minHeight = Math.min(
|
const minHeight = Math.min(
|
||||||
116,
|
116,
|
||||||
Math.max(74, Math.floor((available - (count - 1) * gap) / count))
|
Math.max(58, Math.floor((available - (count - 1) * gap) / count))
|
||||||
);
|
);
|
||||||
const buttonHeight = Math.max(56, Math.min(72, minHeight - 2));
|
const buttonHeight = Math.max(56, Math.min(72, minHeight - 2));
|
||||||
let stackVars = `--nq-p-quest-gap: ${gap}px; --nq-p-quest-min-height: ${minHeight}px; --nq-p-button-height: ${buttonHeight}px`;
|
let stackVars = `--nq-p-quest-gap: ${gap}px; --nq-p-quest-min-height: ${minHeight}px; --nq-p-button-height: ${buttonHeight}px`;
|
||||||
|
|||||||
Reference in New Issue
Block a user