|
2 | 2 | padding: 30px 40px; |
3 | 3 | } |
4 | 4 |
|
| 5 | +.mantine-Modal-modal:has(.LocalizationModal__layout) { |
| 6 | + padding-bottom: 0; |
| 7 | +} |
| 8 | + |
| 9 | +.mantine-Modal-modal:has(.LocalizationModal__layout) .mantine-Modal-header { |
| 10 | + transform: translateY(-10px); |
| 11 | +} |
| 12 | + |
5 | 13 | .LocalizationModal__layout { |
6 | 14 | display: grid; |
7 | | - grid-template-columns: 400px 1fr; |
| 15 | + grid-template-columns: minmax(auto, 400px) 1fr; |
8 | 16 | margin-top: -20px; |
9 | | - margin-bottom: 20px; |
| 17 | +} |
| 18 | + |
| 19 | +@media (max-width: 1024px) { |
| 20 | + .LocalizationModal__layout { |
| 21 | + grid-template-columns: minmax(auto, 200px) 1fr; |
| 22 | + } |
10 | 23 | } |
11 | 24 |
|
12 | 25 | .LocalizationModal__iconTitle { |
13 | 26 | display: flex; |
14 | 27 | align-items: center; |
15 | 28 | gap: 8px; |
| 29 | + white-space: nowrap; |
16 | 30 | } |
17 | 31 |
|
18 | 32 | .LocalizationModal__locales, |
19 | 33 | .LocalizationModal__translations { |
20 | 34 | height: 100%; |
21 | 35 | min-height: 400px; |
22 | | - padding-top: 30px; |
23 | 36 | padding-bottom: 30px; |
24 | 37 | } |
25 | 38 |
|
26 | 39 | .LocalizationModal__locales { |
27 | 40 | padding-right: 30px; |
| 41 | + padding-top: 30px; |
28 | 42 | } |
29 | 43 |
|
30 | 44 | .LocalizationModal__translations { |
31 | 45 | border-left: 1px solid var(--color-border); |
32 | 46 | padding-left: 30px; |
33 | | - margin-right: -30px; |
34 | 47 | padding-right: 30px; |
35 | 48 | max-height: 80vh; |
36 | 49 | overflow: auto; |
| 50 | + margin-left: -30px; |
| 51 | + margin-right: -21px; |
| 52 | + padding-bottom: 0; |
| 53 | + display: flex; |
| 54 | + flex-direction: column; |
| 55 | + justify-content: space-between; |
37 | 56 | } |
38 | 57 |
|
39 | 58 | .LocalizationModal__translations__header { |
40 | 59 | display: flex; |
41 | 60 | justify-content: space-between; |
42 | | - margin-bottom: 30px; |
| 61 | + align-items: flex-start; |
| 62 | + gap: 12px; |
| 63 | + position: sticky; |
| 64 | + top: 0; |
| 65 | + background: var(--color-background, #fff); |
| 66 | + z-index: 10; |
| 67 | + padding-top: 8px; |
| 68 | + padding-bottom: 10px; |
43 | 69 | } |
44 | 70 |
|
45 | 71 | .LocalizationModal__translations__header__buttons { |
46 | 72 | display: flex; |
47 | 73 | align-items: center; |
48 | 74 | gap: 8px; |
| 75 | + flex-wrap: wrap; |
| 76 | + justify-content: flex-end; |
49 | 77 | } |
50 | 78 |
|
51 | 79 | .LocalizationModal__translations__titleWrap { |
52 | 80 | display: flex; |
53 | 81 | align-items: center; |
54 | 82 | gap: 12px; |
| 83 | + flex-wrap: wrap; |
| 84 | + min-width: 0; |
55 | 85 | } |
56 | 86 |
|
57 | 87 | .LocalizationModal__translations__table { |
58 | 88 | display: flex; |
59 | 89 | flex-direction: column; |
| 90 | + width: 100%; |
| 91 | + margin-bottom: 12px; |
60 | 92 | } |
61 | 93 |
|
62 | 94 | .LocalizationModal__translations__table__row { |
63 | 95 | display: grid; |
64 | 96 | grid-template-columns: 1fr 1fr; |
| 97 | + min-width: 0; |
65 | 98 | } |
66 | 99 |
|
67 | 100 | .LocalizationModal__translations__table__row--header { |
68 | 101 | align-items: center; |
| 102 | + position: sticky; |
| 103 | + top: 48px; |
| 104 | + background: var(--color-background, #fff); |
| 105 | + z-index: 9; |
| 106 | + padding-bottom: 8px; |
| 107 | + border-bottom: 1px solid var(--color-border); |
| 108 | + margin-bottom: 10px; |
69 | 109 | } |
70 | 110 |
|
71 | 111 | .LocalizationModal__translations__table__row + .LocalizationModal__translations__table__row { |
|
74 | 114 | margin-top: 12px; |
75 | 115 | } |
76 | 116 |
|
| 117 | +.LocalizationModal__translations__table__row--header + .LocalizationModal__translations__table__row { |
| 118 | + border-top: none; |
| 119 | + padding-top: 0; |
| 120 | + margin-top: 0; |
| 121 | +} |
| 122 | + |
77 | 123 | .LocalizationModal__translations__table__header, |
| 124 | +.LocalizationModal__translations__table__col { |
| 125 | + text-align: left; |
| 126 | + overflow-wrap: break-word; |
| 127 | + word-break: break-word; |
| 128 | + min-width: 0; |
| 129 | +} |
| 130 | + |
78 | 131 | .LocalizationModal__translations__table__col { |
79 | 132 | padding-left: 8px; |
80 | 133 | padding-right: 8px; |
81 | | - text-align: left; |
| 134 | +} |
| 135 | + |
| 136 | +.LocalizationModal__translations__localeHeader { |
| 137 | + display: flex; |
| 138 | + align-items: center; |
| 139 | + justify-content: space-between; |
| 140 | + gap: 8px; |
| 141 | +} |
| 142 | + |
| 143 | +.LocalizationModal__translations__missingToggle { |
| 144 | + display: flex; |
| 145 | + align-items: center; |
| 146 | + gap: 4px; |
| 147 | + white-space: nowrap; |
| 148 | + flex-shrink: 0; |
| 149 | + background: none; |
| 150 | + border: 1px solid transparent; |
| 151 | + border-radius: 4px; |
| 152 | + padding: 2px 8px; |
| 153 | + font-size: 12px; |
| 154 | + font-weight: 700; |
| 155 | + color: #000; |
| 156 | + cursor: pointer; |
| 157 | +} |
| 158 | + |
| 159 | +.LocalizationModal__translations__missingToggle:hover { |
| 160 | + background-color: var(--mantine-color-gray-1, #f1f3f5); |
| 161 | +} |
| 162 | + |
| 163 | +.LocalizationModal__translations__missingToggle--active { |
| 164 | + color: var(--mantine-color-blue-7, #1c7ed6); |
| 165 | + background-color: var(--mantine-color-blue-0, #e7f5ff); |
| 166 | + border-color: var(--mantine-color-blue-3, #74c0fc); |
| 167 | +} |
| 168 | + |
| 169 | +.LocalizationModal__translations__fullyTranslated { |
| 170 | + display: flex; |
| 171 | + align-items: center; |
| 172 | + gap: 4px; |
| 173 | + white-space: nowrap; |
| 174 | + flex-shrink: 0; |
| 175 | + font-size: 12px; |
| 176 | + font-weight: 700; |
| 177 | + color: var(--mantine-color-green-7, #37b24d); |
| 178 | +} |
| 179 | + |
| 180 | +.LocalizationModal__translations__fullyTranslated svg { |
| 181 | + background-color: var(--mantine-color-green-6, #40c057); |
| 182 | + color: white; |
| 183 | + border-radius: 50%; |
| 184 | + padding: 2px; |
| 185 | +} |
| 186 | + |
| 187 | +.LocalizationModal__allNoneBtn:hover { |
| 188 | + background-color: var(--mantine-color-gray-0, #f8f9fa); |
| 189 | +} |
| 190 | + |
| 191 | +.LocalizationModal__sourceCell { |
| 192 | + background-color: var(--mantine-color-gray-0, #f8f9fa); |
| 193 | + border: 1px solid var(--mantine-color-gray-3, #dee2e6); |
| 194 | + padding: 10px 20px; |
| 195 | + border-radius: 4px; |
| 196 | + height: 100%; |
| 197 | + position: relative; |
| 198 | +} |
| 199 | + |
| 200 | +.LocalizationModal__sourceCell__text { |
| 201 | + font-size: 12px; |
| 202 | + white-space: pre-wrap; |
| 203 | +} |
| 204 | + |
| 205 | +.LocalizationModal__sourceCell__link { |
| 206 | + position: absolute; |
| 207 | + top: 4px; |
| 208 | + right: 4px; |
| 209 | + opacity: 0; |
| 210 | + background: white; |
| 211 | + border: 1px solid var(--mantine-color-gray-4, #ced4da); |
| 212 | + border-radius: 4px; |
| 213 | + padding: 4px; |
| 214 | +} |
| 215 | + |
| 216 | +.LocalizationModal__sourceCell:hover .LocalizationModal__sourceCell__link { |
| 217 | + opacity: 1; |
82 | 218 | } |
83 | 219 |
|
84 | 220 | .LocalizationModal__translations__localeSelect { |
85 | 221 | display: flex; |
86 | 222 | gap: 8px; |
87 | 223 | align-items: center; |
| 224 | + white-space: nowrap; |
88 | 225 | } |
89 | 226 |
|
90 | 227 | .LocalizationModal__translations__menu__item .mantine-Menu-itemBody { |
|
101 | 238 | display: flex; |
102 | 239 | align-items: center; |
103 | 240 | justify-content: space-between; |
| 241 | + flex-wrap: wrap; |
| 242 | + gap: 8px; |
104 | 243 | } |
105 | 244 |
|
106 | 245 |
|
|
114 | 253 | .LocalizationModal__missingTags__message svg { |
115 | 254 | color: #FBC02D; |
116 | 255 | } |
| 256 | + |
| 257 | +.LocalizationModal__translations__cell--edited .mantine-Textarea-input { |
| 258 | + border-color: #228be6; |
| 259 | + background-color: #e7f5ff; |
| 260 | +} |
| 261 | + |
| 262 | +.LocalizationModal__translations__cell--empty .mantine-Textarea-input { |
| 263 | + background-color: #FFF5F5; |
| 264 | +} |
| 265 | + |
| 266 | +@keyframes shimmer-border { |
| 267 | + 0% { |
| 268 | + border-color: #be4bdb; |
| 269 | + } |
| 270 | + 25% { |
| 271 | + border-color: #9775fa; |
| 272 | + } |
| 273 | + 50% { |
| 274 | + border-color: #da77f2; |
| 275 | + } |
| 276 | + 75% { |
| 277 | + border-color: #9775fa; |
| 278 | + } |
| 279 | + 100% { |
| 280 | + border-color: #be4bdb; |
| 281 | + } |
| 282 | +} |
| 283 | + |
| 284 | +.LocalizationModal__translations__cell--ai-generating .mantine-Textarea-input { |
| 285 | + border-color: #be4bdb; |
| 286 | + background-color: #f8f0fc; |
| 287 | + animation: shimmer-border 1.5s ease-in-out infinite; |
| 288 | +} |
| 289 | + |
| 290 | +@keyframes spin { |
| 291 | + from { transform: rotate(0deg); } |
| 292 | + to { transform: rotate(360deg); } |
| 293 | +} |
| 294 | + |
| 295 | +.LocalizationModal__spinner { |
| 296 | + animation: spin 1s linear infinite; |
| 297 | + color: #868e96; |
| 298 | +} |
| 299 | + |
| 300 | +.LocalizationModal__translations__saveBar { |
| 301 | + position: sticky; |
| 302 | + bottom: 0; |
| 303 | + background: var(--color-background, #fff); |
| 304 | + border-top: 1px solid var(--color-border); |
| 305 | + padding: 8px 0; |
| 306 | + display: flex; |
| 307 | + align-items: center; |
| 308 | + justify-content: flex-end; |
| 309 | + gap: 8px; |
| 310 | + z-index: 10; |
| 311 | +} |
| 312 | + |
| 313 | +.LocalizationModal__translations__saveBar__status { |
| 314 | + font-size: 12px; |
| 315 | + color: #000; |
| 316 | +} |
0 commit comments