fix [P-224]: обновил ленту новостей
This commit is contained in:
1 parent
079bf0857a
commit
c388b0a9d9
3 files changed
+12
-12
No files matched your search
@@ -90,7 +90,7 @@ export default {
|
||||
/* IntersectionObserver для анимации появления карточек */
|
||||
const visibleItems = ref(new Set());
|
||||
const itemObserver = ref(null);
|
||||
const itemEls = new Map(); // key -> element
|
||||
const itemEls = new Map();
|
||||
|
||||
function registerItem(el, key) {
|
||||
if (!el || itemEls.has(key)) return;
|
||||
@@ -116,15 +116,11 @@ export default {
|
||||
);
|
||||
}
|
||||
|
||||
/* Скролл для кнопки «Наверх» */
|
||||
function onScroll() {
|
||||
const el = feedRef.value;
|
||||
showScrollTop.value = el ? el.scrollTop > 400 : false;
|
||||
}
|
||||
|
||||
function scrollToTop() {
|
||||
feedRef.value?.scrollTo({ top: 0, behavior: 'smooth' });
|
||||
}
|
||||
|
||||
/* Загрузка данных */
|
||||
async function loadMore() {
|
||||
@@ -194,7 +190,6 @@ export default {
|
||||
visibleItems,
|
||||
showScrollTop,
|
||||
registerItem,
|
||||
scrollToTop,
|
||||
loadMore,
|
||||
};
|
||||
},
|
||||
@@ -223,6 +218,8 @@ export default {
|
||||
|
||||
/* Сетка – теперь одна колонка */
|
||||
.news-feed__grid {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 10px;
|
||||
@@ -316,6 +313,7 @@ export default {
|
||||
border: none;
|
||||
border-radius: 24px;
|
||||
background: linear-gradient(90deg, rgb(25 42 43 / 0.78), rgb(51 84 85 / 0.7));
|
||||
backdrop-filter: blur(8px);
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
</v-col>
|
||||
<v-col
|
||||
cols="12" md="4" lg="2"
|
||||
class="d-flex flex-column pa-4"
|
||||
class="d-flex flex-column px-3 mb-2"
|
||||
>
|
||||
<div class="flex-grow-1" style="overflow: hidden;">
|
||||
<digital-letna />
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<v-row class="justify-center ma-0 ">
|
||||
<v-row class="justify-center ma-0 bg">
|
||||
<v-col class="flex-column d-flex">
|
||||
<news-crossroad />
|
||||
</v-col>
|
||||
@@ -10,7 +10,6 @@
|
||||
|
||||
import { pagecounter } from '@/utils/universal_functions';
|
||||
import newsCrossroad from '../components/news-crossroad.vue';
|
||||
// import NewsListNews from '../components/news-list-news.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -27,7 +26,10 @@ export default {
|
||||
|
||||
|
||||
<style>
|
||||
/* .bg {
|
||||
background: url("@/assets/1.jpg") center center;
|
||||
} */
|
||||
.bg {
|
||||
min-height: 100vh;
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg transform='rotate(-35 40 40)' opacity='0.13'%3E%3Crect x='10' y='8' width='60' height='64' rx='4' fill='none' stroke='%23192a2b' stroke-width='2'/%3E%3Crect x='14' y='12' width='52' height='14' rx='2' fill='%23192a2b'/%3E%3Crect x='14' y='30' width='24' height='3' rx='1' fill='%23192a2b'/%3E%3Crect x='14' y='36' width='24' height='3' rx='1' fill='%23192a2b'/%3E%3Crect x='14' y='42' width='24' height='3' rx='1' fill='%23192a2b'/%3E%3Crect x='42' y='30' width='24' height='3' rx='1' fill='%23192a2b'/%3E%3Crect x='42' y='36' width='18' height='3' rx='1' fill='%23192a2b'/%3E%3Crect x='42' y='42' width='21' height='3' rx='1' fill='%23192a2b'/%3E%3Crect x='14' y='50' width='52' height='3' rx='1' fill='%23192a2b'/%3E%3Crect x='14' y='56' width='40' height='3' rx='1' fill='%23192a2b'/%3E%3C/g%3E%3C/svg%3E");
|
||||
background-size: 80px 80px;
|
||||
background-repeat: repeat;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user