chore(transaction): убрать мёртвое правило :empty в строках списка операций - #200
Open
GlebYavorski wants to merge 1 commit into
Open
chore(transaction): убрать мёртвое правило :empty в строках списка операций#200GlebYavorski wants to merge 1 commit into
GlebYavorski wants to merge 1 commit into
Conversation
The `> *:empty + * { margin-left: 0 }` rule was the leftover pair of
`> *:first-child:empty { flex-grow: 0 }`, removed in 335a6b7 (the actual
fix for ardov#142). Now that the empty first child grows again, the sibling's
margin-left never affects layout, so the override does nothing.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Небольшая уборка стилей в строке операции. Ref #142.
В
Rowосталось правило-хвост:Оно было парой к
> *:first-child:empty { flex-grow: 0 }— тому самому правилу, из-за которого название счёта «съезжало» влево у операций без плательщика и комментария (#142). Второе правило удалено в 335a6b7, а первое осталось и теперь ни на что не влияет: пустой первый блок снова растягивается черезflex-grow: 1, поэтомуmargin-leftсоседа не виден в любом случае.Проверка
Собрал изолированный репро с тремя вариантами CSS и замерил правую границу блока со счётом (ширина ряда 448px):
old— состояние на момент создания Стиль отображения счёта в списке Операции #142, счёт уезжает влево;master— сейчас, всё выровнено;PR— после удаления правила, разметка не меняется.tsc --noEmitпроходит.Сам баг из #142 уже исправлен в
master, так что ишью можно закрывать независимо от этого PR — здесь только чистка мёртвого CSS.🤖 Generated with Claude Code