Турция и Москва · фактыTurkey & Moscow

Шапка сравнения на телефоне по-английски: «Apartment,» переносится рядом с «×»Compare table head on a phone in English: «Apartment,» is hyphenated beside the «×»

· Открыть на сайтеOpen on the site

ЦельGoal

Инвестор сравнивает два лота на телефоне в английской версии сайта. Чем ниже шапка с типом номера и проектом, тем раньше видны сами значения.An investor compares two lots on a phone in the English version of the site. The shorter the head with the room type and project, the sooner the values themselves come into view.

ЗадачаProblem

Русские длинные слова в шапке переносятся по слогам с прошлой правки, а английские слова с заглавной буквы браузер не переносит (Chromium; проверено парами «Apartments»/«apartments», «Residences»/«residences», «Departments»/«departments»: строчные переносятся, с заглавной — нет). В английской версии на 320 px «Apartment,» не помещалось слева от «×», уходило под кнопку, и рядом с «×» оставалась пустая полоса: 5 таких шапок по всем 230 лотам, шапка 149 px.Long Russian words in the head have been hyphenated since the previous change, but the browser does not hyphenate English words starting with a capital letter (Chromium; checked in pairs «Apartments»/«apartments», «Residences»/«residences», «Departments»/«departments»: the lower-case ones break, the capitalised ones do not). In English at 320 px «Apartment,» did not fit left of the «×», moved below the button and left an empty strip beside it: 5 such heads across all 230 lots, head 149 px.

Как решилиHow it was solved

До и послеBefore and after

До: «Apartment,» под «×», рядом пустая полоса, шапка 149 px (английская версия, 320 px) / Before: «Apartment,» below the «×», an empty strip beside it, head 149 px (320 px)
До: «Apartment,» под «×», рядом пустая полоса, шапка 149 px (английская версия, 320 px)Before: «Apartment,» below the «×», an empty strip beside it, head 149 px (320 px)
После: «Apart-ment,» рядом с «×», шапка 128 px (английская версия, 320 px) / After: «Apart-ment,» beside the «×», head 128 px (320 px)
После: «Apart-ment,» рядом с «×», шапка 128 px (английская версия, 320 px)After: «Apart-ment,» beside the «×», head 128 px (320 px)