Skip to content

move stylesheet PopupController.js -> ui.css#17

Merged
ivanvit100 merged 4 commits into
ivanvit100:masterfrom
Dordovel:master
May 26, 2026
Merged

move stylesheet PopupController.js -> ui.css#17
ivanvit100 merged 4 commits into
ivanvit100:masterfrom
Dordovel:master

Conversation

@Dordovel

@Dordovel Dordovel commented May 25, 2026

Copy link
Copy Markdown
Contributor

Описание (Description)

Перенесены(на сколько это возможно) хард стили в css файл.
Перенос js евентов в css hover сломает тесты.

Тип изменений (Type of Changes)

  • ⚠️ Исправление бага (Bug fix)
  • ⚙️ Новая функция (New feature)
  • [ x] ♻️ Рефакторинг без изменения поведения (Refactoring, no behavior change)
  • ⚗️ Тесты (Tests)
  • ℹ️ Документация (Documentation)
  • ✏️ Сборка / CI / зависимости (Build / CI / dependencies)

Чеклист (Checklist)

  • Тесты проходят локально — npm test (Tests pass locally)
  • [x ] Покрытие кода не снизилось — npm run test:coverage (Code coverage has not decreased)
  • Код следует стилю проекта (Code follows the project style)
  • Добавлены / обновлены тесты для изменённой логики (Tests added / updated for changed logic)
  • Документация обновлена, если требуется (Documentation updated if needed)

@ivanvit100 ivanvit100 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Благодарю за Ваш вклад!
Комментарии по pr некритичные, можно принимать и так.

Comment thread ui/PopupController.js Outdated
Comment on lines 228 to 231
@@ -301,8 +232,6 @@

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Поскольку большинство стилей (за исключением display) уже вынесены - возможно стоит вынести и это?

Comment thread ui/PopupController.js Outdated

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Аналогично предыдущему комменатрию: попрошу эти стили также вынести в ui.css

Comment thread css/ui.css
font-size: 14px;
margin-left: 8px;
margin-right: 8px;
}

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Этот селектор уже определён на строке 49. Стоит убрать его оттуда и прописать только здесь.

Comment thread css/ui.css Outdated
Comment on lines +239 to +241
#chapterToSelect, #chapterFromSelect {
border: 2px solid var(--primary-color);
}

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это правило также фигурирует в отедльных селекторах #chapterFromSelect и #chapterToSelect выше. В таком случае стоит убрать border в верхних определениях, поскольку сейчас это правило избыточно дублируется.

@ivanvit100 ivanvit100 merged commit 2735a31 into ivanvit100:master May 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants