Skip to content

Commit 6af0716

Browse files
committed
В вопросах и ответах увеличены изображения на 20%
1 parent 2f16cbc commit 6af0716

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

artifacts/game-client/src/lib/adepts-question-modal/QuestionModal.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,8 @@ export function QuestionModal({
535535
const isWowEventsLargeQuestionMedia =
536536
board === 3 && themeName === "События в WoW" && [100, 200, 400, 500].includes(points);
537537
const questionImageMaxStyle = isWowEventsLargeQuestionMedia
538-
? { maxHeight: "clamp(115px, 31.05vh, 414px)", maxWidth: "100%" as const }
539-
: { maxHeight: "clamp(100px, 27vh, 360px)", maxWidth: "100%" as const };
538+
? { maxHeight: "clamp(138px, 37.26vh, 497px)", maxWidth: "100%" as const }
539+
: { maxHeight: "clamp(120px, 32.4vh, 432px)", maxWidth: "100%" as const };
540540
const questionVideoMaxStyle = isWowEventsLargeQuestionMedia
541541
? { maxHeight: "clamp(138px, 34.5vh, 460px)" }
542542
: { maxHeight: "clamp(120px, 30vh, 400px)" };
@@ -790,7 +790,7 @@ export function QuestionModal({
790790
src={resolveUrl(question.questionUrl)}
791791
alt="Question media"
792792
className="w-auto rounded-xl object-contain shadow-lg"
793-
style={board === 3 ? questionImageMaxStyle : { maxHeight: "clamp(100px, 27vh, 360px)", maxWidth: "100%" }}
793+
style={board === 3 ? questionImageMaxStyle : { maxHeight: "clamp(120px, 32.4vh, 432px)", maxWidth: "100%" }}
794794
onError={(e) => {
795795
const el = e.currentTarget as HTMLImageElement;
796796
el.style.display = "none";
@@ -876,10 +876,10 @@ export function QuestionModal({
876876
className={`w-auto rounded-xl object-contain${isCelebration ? "" : " shadow-lg"}`}
877877
style={{
878878
maxHeight: isCelebration
879-
? "clamp(160px, 38vh, 460px)"
879+
? "clamp(192px, 45.6vh, 552px)"
880880
: board === 3 && isWowEventsLargeAnswerMedia
881-
? "clamp(115px, 27.6vh, 368px)"
882-
: "clamp(100px, 24vh, 320px)",
881+
? "clamp(138px, 33.12vh, 442px)"
882+
: "clamp(120px, 28.8vh, 384px)",
883883
maxWidth: "100%",
884884
...(isCelebration ? {
885885
filter: "drop-shadow(0 0 18px hsla(45,100%,55%,0.95)) drop-shadow(0 0 40px hsla(45,100%,50%,0.6)) drop-shadow(0 0 70px hsla(45,100%,45%,0.35))",

0 commit comments

Comments
 (0)