Iguala el tamaño de las cinco tarjetas del Menú Principal

El artboard del 23-ago-2026 corrige una asimetría de v4: las dos filas
eran cajas flex independientes, así que la de arriba repartía tres
tarjetas a un tercio del ancho y la de abajo dos a la mitad. Misma
altura, distinto ancho.

Ahora es una sola rejilla de seis columnas con cada tarjeta a span 2:
los cinco caminos miden exactamente lo mismo y la fila de abajo va
centrada a mano en las columnas 2-3 y 4-5, como lo dibuja el diseño.
grid-auto-rows: 1fr iguala las alturas.

El hover cambia con ella. flex-grow: 1.18 no significa nada dentro de una
celda de rejilla —su carril está fijo en dos columnas, que es justo el
punto de este cambio—, así que la tarjeta sube en vez de ensancharse:
translateY(-6px). Del mismo artboard viene lo único que el foco recibe en
esta pantalla, un filo blanco al 0.95 contra el 0.85 en reposo; sigue sin
haber anillo, y sigue siendo decisión de diseño.

La colocación a mano de la fila de abajo solo se aplica cuando las cinco
tarjetas se renderizan. Una tarjeta cuya app no ve el rol no existe en el
DOM, y un grid-column fijo sobre cuatro dejaba Inventario descentrado con
un hueco al lado; sin las cinco, fluyen tres por fila en orden de
lectura. No es hipotético: Tableros lo ve cualquier usuario interno,
Venta e Inventario dependen de los grupos de POS y almacén, y Panel
General y QR del de administrador de sucursal.

Nada más se toca: el control maestro y la firma quedan como estaban.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jorem JuárezandClaude Opus 5 committed 2026-08-23 22:38:22 -06:00
1 parent 78c86a2eab
commit 8120c22c7f
2 files changed
+57 -16

No files matched your search

@@ -20,9 +20,13 @@
// longer swap a hex: they deepen the same tint.
// · The title "MENÚ PRINCIPAL" is gone; the header is the house and the rule.
// · Contactos left the big blocks and joined Empleados in a new master row
// of small buttons. Row 2 is now two blocks, not three.
// of small buttons.
// · Tableros went from grey to gold.
// · The catch-all tile row is GONE. See the note over .beyond_launcher_master.
// · The five doors are all ONE size (23-aug-2026 artboard). Two flex rows
// gave the bottom pair half the width each against the top trio's third;
// one grid of six columns, two per block, makes them equal and centres the
// bottom row. Hover lifts the block instead of widening it.
//
// PALETTE — the rule in scss/beyond_variables.scss is that a colour graduates
// to a token when a SECOND screen needs it. Nothing graduated in v4 and one
@@ -147,6 +151,10 @@ $beyond-launcher-vidrio-bajo: rgba(255, 255, 255, 0.35);
// still WORKS by keyboard — the dropdown's own arrow/enter navigation is
// untouched — you just cannot see where you are.
//
// The one thing the new artboard does give focus is a brighter hairline on
// the block — 0.95 white against the 0.85 at rest. It is faint, but it is
// the design's own answer and it is more than v4 had.
//
// :focus and :focus-visible both, and !important, because the reset has to
// beat Bootstrap's .dropdown-item:focus and Odoo's own o-dropdown rules.
// -------------------------------------------------------------------------
@@ -158,6 +166,10 @@ $beyond-launcher-vidrio-bajo: rgba(255, 255, 255, 0.35);
}
}
.beyond_block:focus {
border-color: rgba(255, 255, 255, 0.95);
}
// -------------------------------------------------------------------------
// Header: the house and the rule. v4 dropped the title.
// -------------------------------------------------------------------------
@@ -212,16 +224,43 @@ $beyond-launcher-vidrio-bajo: rgba(255, 255, 255, 0.35);
display: none;
}
// Two rows. Both grow, so the blocks split whatever height is left.
.beyond_launcher_band {
// -------------------------------------------------------------------------
// The grid
//
// Six columns, every block spanning two: that is the whole trick behind
// "all the same size". v4 laid the doors out as two flex ROWS, so the two
// blocks of the bottom row were half the width each while the three of the
// top row were a third — same height, different width. One grid of six
// fixes it: three per row, each a third wide, and the bottom row centred by
// hand into columns 2-3 and 4-5.
//
// `grid-auto-rows: 1fr` is what keeps the rows equal in height, and the
// grid itself takes `flex: 1` so the two rows split whatever the header,
// the master row and the signature leave behind.
// -------------------------------------------------------------------------
.beyond_launcher_grid {
flex: 1;
min-height: 0;
display: flex;
display: grid;
grid-template-columns: repeat(6, 1fr);
grid-auto-rows: 1fr;
gap: 6px;
padding: 8px 6px 8px;
}
.beyond_launcher_row1 { padding: 8px 6px 0; }
.beyond_launcher_row2 { padding: 6px 6px 8px; }
// ENGINEERING — the hand-placed bottom row is the design's NOMINAL case:
// the five doors, all present. It only applies when all five actually
// render, because a block whose app is hidden for this role does not
// render at all, and an explicit `grid-column: 2` on a four-block screen
// pins Inventario off-centre with a hole beside it. Short of the five, the
// blocks auto-flow three per row in reading order, which is the sane
// degradation. Roles differ here for real: Tableros is visible to every
// internal user, Venta and Inventario ride on POS/stock groups, and Panel
// General and QR on the branch administrator's.
.beyond_launcher_grid:has(.beyond_block_venta):has(.beyond_block_panel):has(.beyond_block_qr):has(.beyond_block_inventario):has(.beyond_block_tableros) {
.beyond_block_inventario { grid-column: 2 / span 2; }
.beyond_block_tableros { grid-column: 4 / span 2; }
}
// Reset: DropdownItem renders an <a.dropdown-item>, so Bootstrap's block
// layout, padding, colour and nowrap have to go before the design's own box
@@ -242,7 +281,7 @@ $beyond-launcher-vidrio-bajo: rgba(255, 255, 255, 0.35);
// The blocks
// -------------------------------------------------------------------------
.beyond_block {
flex: 1;
grid-column: span 2;
min-width: 0;
min-height: 0;
justify-content: center;
@@ -251,11 +290,15 @@ $beyond-launcher-vidrio-bajo: rgba(255, 255, 255, 0.35);
border: 1.5px solid $beyond-launcher-vidrio-borde;
border-radius: 28px;
backdrop-filter: blur(16px);
transition: flex-grow 220ms ease, background 180ms ease;
transition: transform 220ms ease, background 180ms ease;
// The block rises instead of growing. v4 widened it with flex-grow,
// which a grid cell cannot do: its track is fixed at two columns, and
// that is the point — the doors stay the same size. The design answers
// with a lift.
&:hover,
&:active {
flex-grow: 1.18;
transform: translateY(-6px);
}
svg {
@@ -68,9 +68,11 @@
<span class="beyond_launcher_rule"/>
</div>
<!-- Row 1. A block whose app is hidden for this role simply does
not render and the remaining ones spread out on their own. -->
<div class="beyond_launcher_band beyond_launcher_row1">
<!-- One grid, six columns, every block spanning two of them: that
is what makes the five doors the same size. Row 2 is centred
by hand in the stylesheet. A block whose app is hidden for
this role simply does not render. -->
<div class="beyond_launcher_band beyond_launcher_grid">
<t t-foreach="apps" t-as="app" t-key="app.id">
<DropdownItem
t-if="app.xmlid === 'point_of_sale.menu_point_root'"
@@ -125,10 +127,6 @@
<span class="beyond_block_name">QR</span>
</DropdownItem>
</t>
</div>
<!-- Row 2 -->
<div class="beyond_launcher_band beyond_launcher_row2">
<t t-foreach="apps" t-as="app" t-key="app.id">
<DropdownItem
t-if="app.xmlid === 'stock.menu_stock_root'"