Выровнять команду установки по табам на /api/overview#258
Merged
Conversation
7d84bdb to
4a0cbe5
Compare
- Выровнять команду установки по табам: убран левый padding обёртки (pl-0), т.к. у .line уже есть padding-left 1rem. - Полоска активного таба теперь поверх разделителя (как в шапке сайта): border-b перенесён на сам ряд табов (контент, над скроллбаром) + min-w-full, полоска на -bottom-px; таб-бар скроллится без скроллбара (no-scrollbar с width/height:0, чтобы не резервировал место). - Текст про no-code/n8n переписан («строить интеграции»/«можно обойтись без кода»).
4a0cbe5 to
fc6038e
Compare
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.
Проблема
На странице
/api/overviewкоманда установки в панели клиентов была сдвинута вправо относительно табов.Причина
У каждой строки кода уже есть
padding-left: 1rem(.code-block-container .lineв globals.css). Обёртка кода стояла сpx-4, поэтому суммарный левый отступ был 32px против 16px (pl-4) у таб-бара.Фикс
Убрал левый padding обёртки (
pl-0, оставилpr-4) — теперь код выровнен по табам за счёт встроенного1remу.line(так же, как сделано в блоке «Базовый URL»).Чисто фронтенд-компонент, генерируемые файлы не затронуты.
turbo checkзелёный.