Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/web/e2e/reflow-contrast.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ const PHONE_PAGES = [
'/smartphones/iphone-16-pro-max-256gb',
'/merchants',
'/compare',
// Longer sort labels pushed the catalog sideways in en and cs
// (DOS/Rate#1082).
'/en/smartphones',
'/cs/smartphones',
];

for (const path of PHONE_PAGES) {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/[locale]/smartphones/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ export async function CategoryCatalogContent({

<div className="col-xl-5 col-lg-5 col-md-5 col-sm-12">
<div className="text-md-end">
<div className="dropdown d-inline-flex p-0">
<div className="dropdown d-inline-flex mw-100 p-0">
<a
href="#shortfilter"
className="dropdown-toggle toogleDrops px-3 py-2"
Expand Down
5 changes: 5 additions & 0 deletions apps/web/src/app/style/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6423,6 +6423,11 @@ a.mousewheel.center {
border-radius: 50px;
transition: all ease 0.4s;
color: var(--bs-dark);
// Long labels ("ŘAZENÍ: VÝCHOZÍ (NEDÁVNO AKTUALIZOVANÉ)") wrap instead of
// pushing a 320px page sideways; Bootstrap's toggle is nowrap
// (DOS/Rate#1082).
max-width: 100%;
white-space: normal;

&:hover {
background-color: var(--bs-primary-bg-subtle);
Expand Down
6 changes: 4 additions & 2 deletions apps/web/src/components/elementary/LocaleSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,10 @@ export function LocaleSwitcher({
style={{
height: compact ? '38px' : '48px',
// The compact switcher sits in the phone header, which has to fit
// 320px (DOS/Rate#809).
padding: compact ? '0 8px' : '0 14px',
// 320px (DOS/Rate#809) with the widest label: "EN" and "CS" are
// ~5px wider than "VI" and pushed the menu toggle's tap area off
// screen (DOS/Rate#1082).
padding: compact ? '0 5px' : '0 14px',
backgroundColor: isDarkHeader
? 'rgba(255, 255, 255, 0.12)'
: 'var(--bs-card-bg, #ffffff)',
Expand Down
Loading