fix: Corregir centrado de texto con transform en preview
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 36s
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 36s
- Eliminar transform-origin: top left de font-b rules - Agregar transform-origin: center para líneas centradas con transforms - Soluciona alineación incorrecta en templates como Nota de Comercio
This commit is contained in:
@@ -149,13 +149,21 @@ function handleVariableClick(segment: TextSegment) {
|
|||||||
/* Font B con doble alto */
|
/* Font B con doble alto */
|
||||||
.line-content.font-b.text-double-height {
|
.line-content.font-b.text-double-height {
|
||||||
transform: scaleX(0.825) scaleY(2);
|
transform: scaleX(0.825) scaleY(2);
|
||||||
transform-origin: top left;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Font B con doble ancho Y alto */
|
/* Font B con doble ancho Y alto */
|
||||||
.line-content.font-b.text-double-width.text-double-height {
|
.line-content.font-b.text-double-width.text-double-height {
|
||||||
transform: scale(1.65, 2);
|
transform: scale(1.65, 2);
|
||||||
transform-origin: top left;
|
}
|
||||||
|
|
||||||
|
/* Transform origin para líneas centradas - permite que scale funcione correctamente con flexbox center */
|
||||||
|
.align-center .line-content.font-b.text-double-width,
|
||||||
|
.align-center .line-content.font-b.text-double-height,
|
||||||
|
.align-center .line-content.font-b.text-double-width.text-double-height,
|
||||||
|
.align-center .line-content.text-double-width,
|
||||||
|
.align-center .line-content.text-double-height,
|
||||||
|
.align-center .line-content.text-double-width.text-double-height {
|
||||||
|
transform-origin: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Línea vacía (feed) */
|
/* Línea vacía (feed) */
|
||||||
|
|||||||
Reference in New Issue
Block a user