edit small screen layout

This commit is contained in:
smanylov
2026-01-24 13:19:48 +07:00
parent f8ab107724
commit bd869798be
6 changed files with 124 additions and 3 deletions
+1
View File
@@ -222,6 +222,7 @@ export async function registration(
message_body: { token: string }, message_body: { token: string },
message_code: string message_code: string
}; };
console.log(parsed);
if (parsed.message_desc === 'Operation successful') { if (parsed.message_desc === 'Operation successful') {
await createSession(parsed.message_body.token, email as string); await createSession(parsed.message_body.token, email as string);
} else { } else {
+16
View File
@@ -41,6 +41,10 @@
color: v.$white; color: v.$white;
max-width: calc(100vw - var(--side-bar-width) - 60px); max-width: calc(100vw - var(--side-bar-width) - 60px);
@media (max-width: 440px) {
max-width: calc(100vw - var(--side-bar-width) - 30px);
}
h1 { h1 {
font-size: 2rem; font-size: 2rem;
font-weight: 700; font-weight: 700;
@@ -73,6 +77,10 @@
display: flex; display: flex;
gap: 28px; gap: 28px;
align-items: center; align-items: center;
@media (max-width: 440px) {
flex-direction: column;
}
} }
.header-stat-item { .header-stat-item {
@@ -101,6 +109,10 @@
padding: 30px; padding: 30px;
background: v.$bg-light; background: v.$bg-light;
min-height: 100vh; min-height: 100vh;
@media (max-width: 440px) {
padding: 15px;
}
} }
.main-containter { .main-containter {
@@ -121,6 +133,10 @@
&.auto { &.auto {
width: auto; width: auto;
} }
@media (max-width: 440px) {
max-width: calc(100vw - var(--side-bar-width) - 30px);
}
} }
.btn { .btn {
+26
View File
@@ -14,11 +14,19 @@
padding: 20px 20px; padding: 20px 20px;
} }
@media (max-width: 440px) {
padding: 10px 10px;
}
.header-action { .header-action {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 15px; gap: 15px;
@media (max-width: 440px) {
gap: 10px;
}
.icon-btn { .icon-btn {
width: 40px; width: 40px;
height: 40px; height: 40px;
@@ -36,6 +44,11 @@
background: v.$bg-hover; background: v.$bg-hover;
transform: translateY(-2px); transform: translateY(-2px);
} }
@media (max-width: 440px) {
width: 30px;
height: 30px;
}
} }
} }
@@ -68,12 +81,20 @@
@media (max-width: 490px) { @media (max-width: 490px) {
padding: 8px; padding: 8px;
} }
@media (max-width: 440px) {
padding: 8px;
}
} }
.tokens-count { .tokens-count {
font-weight: 700; font-weight: 700;
font-size: 14px; font-size: 14px;
letter-spacing: 0.5px; letter-spacing: 0.5px;
@media (max-width: 440px) {
font-size: 12px;
}
} }
.tokens-label { .tokens-label {
@@ -192,6 +213,11 @@
cursor: pointer; cursor: pointer;
transition: all 0.3s; transition: all 0.3s;
text-transform: uppercase; text-transform: uppercase;
@media (max-width: 440px) {
width: 30px;
height: 30px;
}
} }
.user-dropdown { .user-dropdown {
+79
View File
@@ -941,6 +941,10 @@
grid-template-columns: auto; grid-template-columns: auto;
} }
@media (max-width: 440px) {
max-width: calc(100vw - var(--side-bar-width) - 30px);
}
.stat-card { .stat-card {
background: white; background: white;
padding: 18px; padding: 18px;
@@ -1008,6 +1012,10 @@
text-align: center; text-align: center;
max-width: calc(100vw - var(--side-bar-width) - 60px); max-width: calc(100vw - var(--side-bar-width) - 60px);
@media (max-width: 440px) {
max-width: calc(100vw - var(--side-bar-width) - 30px);
}
.referral-link-input { .referral-link-input {
display: flex; display: flex;
gap: 15px; gap: 15px;
@@ -1032,6 +1040,10 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
white-space: nowrap; white-space: nowrap;
@media (max-width: 490px) {
font-size: 10px;
}
} }
.copy-btn { .copy-btn {
@@ -1276,6 +1288,16 @@
margin-bottom: 30px; margin-bottom: 30px;
border: none; border: none;
@media (max-width: 440px) {
padding: 0;
box-shadow: none;
}
.settings-form-wrapper {
width: 100%;
}
.form-group { .form-group {
margin-bottom: 20px; margin-bottom: 20px;
@@ -1284,6 +1306,10 @@
margin-bottom: 8px; margin-bottom: 8px;
font-weight: 600; font-weight: 600;
color: v.$text-s; color: v.$text-s;
@media (max-width: 440px) {
font-size: 12px;
}
} }
input, input,
@@ -1294,6 +1320,11 @@
border-radius: 10px; border-radius: 10px;
font-size: 14px; font-size: 14px;
transition: border-color 0.3s; transition: border-color 0.3s;
@media (max-width: 440px) {
font-size: 12px;
padding: 10px;
}
} }
} }
@@ -1302,6 +1333,10 @@
align-items: center; align-items: center;
gap: 10px; gap: 10px;
margin-bottom: 15px; margin-bottom: 15px;
@media (max-width: 440px) {
font-size: 14px;
}
} }
.btn-primary { .btn-primary {
@@ -1322,6 +1357,7 @@
grid-template-columns: repeat(5, 1fr); grid-template-columns: repeat(5, 1fr);
gap: 20px; gap: 20px;
margin-bottom: 40px; margin-bottom: 40px;
max-width: calc(100vw - var(--side-bar-width) - 60px);
.stat-card.matches { .stat-card.matches {
--card-color-1: #3b82f6; --card-color-1: #3b82f6;
@@ -1420,6 +1456,11 @@
@media (max-width: 860px) { @media (max-width: 860px) {
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
} }
@media (max-width: 440px) {
grid-template-columns: auto;
max-width: calc(100vw - var(--side-bar-width) - 30px);
}
} }
.dashboard-main-grid { .dashboard-main-grid {
@@ -1453,6 +1494,14 @@
max-width: calc(100vw - var(--side-bar-width) - 60px); max-width: calc(100vw - var(--side-bar-width) - 60px);
} }
} }
@media (max-width: 440px) {
.left-column,
.right-column {
max-width: calc(100vw - var(--side-bar-width) - 30px);
}
}
} }
.content-section { .content-section {
@@ -1591,6 +1640,8 @@
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(4, 1fr);
gap: 20px; gap: 20px;
margin-bottom: 40px; margin-bottom: 40px;
width: 100%;
max-width: calc(100vw - var(--side-bar-width) - 60px);
.type-card.images { .type-card.images {
--card-color-1: #ff6b8a; --card-color-1: #ff6b8a;
@@ -1705,6 +1756,11 @@
@media (max-width: 1360px) { @media (max-width: 1360px) {
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
} }
@media (max-width: 440px) {
grid-template-columns: auto;
max-width: calc(100vw - var(--side-bar-width) - 30px);
}
} }
.dashboard-limits-section { .dashboard-limits-section {
@@ -1891,6 +1947,12 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
max-width: calc(100vw - var(--side-bar-width) - 60px);
@media (max-width: 440px) {
flex-direction: column;
max-width: calc(100vw - var(--side-bar-width) - 30px);
}
.last-check-title { .last-check-title {
font-size: 14px; font-size: 14px;
@@ -2143,6 +2205,10 @@
margin-bottom: 2rem; margin-bottom: 2rem;
max-width: calc(100vw - var(--side-bar-width) - 60px); max-width: calc(100vw - var(--side-bar-width) - 60px);
@media (max-width: 440px) {
max-width: calc(100vw - var(--side-bar-width) - 30px);
}
&-stat-card { &-stat-card {
background: white; background: white;
padding: 1.5rem; padding: 1.5rem;
@@ -2262,6 +2328,10 @@
box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1); box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
max-width: calc(100vw - var(--side-bar-width) - 60px); max-width: calc(100vw - var(--side-bar-width) - 60px);
@media (max-width: 440px) {
max-width: calc(100vw - var(--side-bar-width) - 30px);
}
.my-cases-header { .my-cases-header {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -2419,6 +2489,11 @@
gap: 24px; gap: 24px;
max-width: calc(100vw - var(--side-bar-width) - 60px); max-width: calc(100vw - var(--side-bar-width) - 60px);
@media (max-width: 440px) {
max-width: calc(100vw - var(--side-bar-width) - 30px);
flex-direction: column;
}
.check-all-left { .check-all-left {
flex: 1; flex: 1;
position: relative; position: relative;
@@ -2474,6 +2549,10 @@
margin-bottom: 24px; margin-bottom: 24px;
max-width: calc(100vw - var(--side-bar-width) - 60px); max-width: calc(100vw - var(--side-bar-width) - 60px);
@media (max-width: 440px) {
max-width: calc(100vw - var(--side-bar-width) - 30px);
}
.section-header { .section-header {
display: flex; display: flex;
align-items: center; align-items: center;
-1
View File
@@ -7,7 +7,6 @@
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
border: 1px solid #e2e8f0; border: 1px solid #e2e8f0;
transition: all 0.3s ease; transition: all 0.3s ease;
overflow: hidden;
} }
.form-section { .form-section {
@@ -8,7 +8,7 @@ export default function SettingReferralProgram() {
</div> </div>
<form className="settings-form"> <form className="settings-form">
<div> <div className="settings-form-wrapper">
<h4>💳 Настройки выплат</h4> <h4>💳 Настройки выплат</h4>
<div className="form-group"> <div className="form-group">
@@ -32,7 +32,7 @@ export default function SettingReferralProgram() {
</div> </div>
</div> </div>
<div> <div className="settings-form-wrapper">
<h4>🔔 Уведомления</h4> <h4>🔔 Уведомления</h4>
<div className="checkbox-group"> <div className="checkbox-group">