Ezmary commited on
Commit
e2bd9e9
·
verified ·
1 Parent(s): 3d6be6c

Update src/App.scss

Browse files
Files changed (1) hide show
  1. src/App.scss +16 -7
src/App.scss CHANGED
@@ -1,4 +1,4 @@
1
- // src/App.scss (نسخه نهایی با اصلاح راست‌چین)
2
 
3
  // 1. Import Tailwind's base, components, and utilities
4
  @import 'tailwindcss/base';
@@ -60,7 +60,7 @@
60
  &:active { transform: scale(0.95); }
61
  }
62
 
63
- /* استایل نوتیفیکیشن زیبا و مرکزی (بدون تغییر) */
64
  .notification-popover-wrapper {
65
  position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 100;
66
  width: calc(100% - 2rem); max-width: 28rem; display: flex; justify-content: center; pointer-events: none;
@@ -95,7 +95,6 @@
95
  background: theme('colors.custom-popover'); backdrop-filter: blur(10px);
96
  border-radius: 12px; padding: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
97
  border: 1px solid theme('colors.custom-border');
98
- // ✅ اصلاح ۱: منوی شخصیت‌ها راست‌چین شد
99
  direction: rtl;
100
  ul { list-style: none; padding: 0; margin: 0; width: 220px; }
101
  li {
@@ -138,9 +137,21 @@
138
  .cam-button-color { background-color: #E0ECFF; }
139
  .dark .mic-button-color { background-color: #5C2129; }
140
  .dark .cam-button-color { background-color: #223355; }
 
 
 
 
 
 
 
 
141
  .switch-camera-button-container {
142
- position: absolute; bottom: calc(100% + 0.65rem); left: 50%;
143
- transform: translateX(-50%) translateY(15px) scale(0.7); z-index: 5;
 
 
 
 
144
  opacity: 0; pointer-events: none; transition: opacity 0.35s, transform 0.35s;
145
  transform-origin: center bottom;
146
  &.visible { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); pointer-events: auto; }
@@ -170,7 +181,6 @@
170
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
171
  border: 1px solid #e5e5e5;
172
  animation: modal-fade-in 0.3s ease-out;
173
- // ✅ اصلاح ۲: مودال و محتوایش راست‌چین شد
174
  direction: rtl;
175
  .dark & { background: #2c2c2e; color: #fff; border-color: rgba(255, 255, 255, 0.15); }
176
  .modal-header {
@@ -192,7 +202,6 @@
192
  width: 100%; padding: 12px; border-radius: 8px;
193
  border: 1px solid #ccc; background-color: #f8f8f8;
194
  color: #111; font-size: 15px;
195
- // ✅ اصلاح ۳: متن داخل اینپوت‌ها راست‌چین شد
196
  text-align: right;
197
  .dark & { border-color: #555; background-color: #3a3a3c; color: #fff; }
198
  &:focus {
 
1
+ // src/App.scss (نسخه نهایی با اصلاح جایگاه دکمه تعویض دوربین)
2
 
3
  // 1. Import Tailwind's base, components, and utilities
4
  @import 'tailwindcss/base';
 
60
  &:active { transform: scale(0.95); }
61
  }
62
 
63
+ /* استایل نوتیفیکیشن زیبا و مرکزی */
64
  .notification-popover-wrapper {
65
  position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 100;
66
  width: calc(100% - 2rem); max-width: 28rem; display: flex; justify-content: center; pointer-events: none;
 
95
  background: theme('colors.custom-popover'); backdrop-filter: blur(10px);
96
  border-radius: 12px; padding: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
97
  border: 1px solid theme('colors.custom-border');
 
98
  direction: rtl;
99
  ul { list-style: none; padding: 0; margin: 0; width: 220px; }
100
  li {
 
137
  .cam-button-color { background-color: #E0ECFF; }
138
  .dark .mic-button-color { background-color: #5C2129; }
139
  .dark .cam-button-color { background-color: #223355; }
140
+
141
+ // ✅ تغییر اصلی اینجاست
142
+ .control-button-wrapper {
143
+ position: relative; // این مهم است تا دکمه تعویض دوربین نسبت به آن موقعیت‌یابی شود
144
+ display: flex;
145
+ justify-content: center;
146
+ }
147
+
148
  .switch-camera-button-container {
149
+ position: absolute;
150
+ bottom: calc(100% + 0.65rem);
151
+ // این دو خط، دکمه را دقیقاً در مرکز افقی والدش (یعنی .control-button-wrapper) قرار می‌دهد
152
+ left: 50%;
153
+ transform: translateX(-50%) translateY(15px) scale(0.7);
154
+ z-index: 5;
155
  opacity: 0; pointer-events: none; transition: opacity 0.35s, transform 0.35s;
156
  transform-origin: center bottom;
157
  &.visible { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); pointer-events: auto; }
 
181
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
182
  border: 1px solid #e5e5e5;
183
  animation: modal-fade-in 0.3s ease-out;
 
184
  direction: rtl;
185
  .dark & { background: #2c2c2e; color: #fff; border-color: rgba(255, 255, 255, 0.15); }
186
  .modal-header {
 
202
  width: 100%; padding: 12px; border-radius: 8px;
203
  border: 1px solid #ccc; background-color: #f8f8f8;
204
  color: #111; font-size: 15px;
 
205
  text-align: right;
206
  .dark & { border-color: #555; background-color: #3a3a3c; color: #fff; }
207
  &:focus {