Skip to content
Snippets Groups Projects
Commit bc7191d9 authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

dont autoscroll program on desktop, update search page

parent 0ae2d8c1
No related branches found
No related tags found
1 merge request!22Feat/redesign
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
> >
<CardProgramItemPoint <CardProgramItemPoint
v-for="(point, index) in points.slice(1)" v-for="(point, index) in points.slice(1)"
:key="point.number"
:number="point.number" :number="point.number"
:content="point.content" :content="point.content"
/> />
...@@ -140,6 +141,7 @@ export default { ...@@ -140,6 +141,7 @@ export default {
this.$refs.openVariant.classList.add("xl:p-12") this.$refs.openVariant.classList.add("xl:p-12")
this.$refs.openVariant.classList.add("p-6") this.$refs.openVariant.classList.add("p-6")
if (!isLgScreenSize()) {
// Do this only after 20ms, after the browser's had time to hopefully catch up. // Do this only after 20ms, after the browser's had time to hopefully catch up.
setTimeout( setTimeout(
() => { () => {
...@@ -153,6 +155,7 @@ export default { ...@@ -153,6 +155,7 @@ export default {
}, },
20 20
) )
}
} else if (!isNowOpen && wasOpen) { } else if (!isNowOpen && wasOpen) {
if (isLgScreenSize()) { if (isLgScreenSize()) {
this.$refs.openVariant.classList.remove("duration-300") this.$refs.openVariant.classList.remove("duration-300")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment