fix: вкладки «Мои записи» больше не растягиваются на всю ширину
Frontend CI / build-and-check (pull_request) Failing after 5m6s

Добавлен width: fit-content для .tabs — родитель .page-content
является flex-контейнером с stretch, из-за чего вкладки растягивались.
Теперь tabs занимает только пространство контента.
This commit is contained in:
2026-05-14 00:01:37 +00:00
parent d37b5933f3
commit 11ce1a7d56
@@ -98,12 +98,14 @@ async function confirmCancel() {
<style scoped> <style scoped>
.my-lectures { display: flex; flex-direction: column; gap: 18px; } .my-lectures { display: flex; flex-direction: column; gap: 18px; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tabs { display: inline-flex; border: 1px solid var(--color-border-glass); border-radius: 12px; overflow: hidden; } .tabs { display: inline-flex; width: fit-content; border: 1px solid var(--color-border-glass); border-radius: 12px; overflow: hidden; }
.tabs button { .tabs button {
background: rgba(255,255,255,0.7); background: rgba(255,255,255,0.7);
border: none; border: none;
padding: 8px 18px; padding: 8px 18px;
font-size: 13px; font-size: 13px;
min-width: 110px;
text-align: center;
cursor: pointer; cursor: pointer;
color: var(--color-text-secondary); color: var(--color-text-secondary);
} }