mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
Fix overflow hidden
This commit is contained in:
parent
8e77a95878
commit
4055febd4e
2 changed files with 32 additions and 28 deletions
|
@ -18,6 +18,10 @@
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card-wrapper.overflow-hidden {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 700px) {
|
@media screen and (max-width: 700px) {
|
||||||
.card {
|
.card {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
|
@ -17,7 +17,7 @@ export function Card(props) {
|
||||||
}, [props.show, measureRef])
|
}, [props.show, measureRef])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={`card-wrapper ${ props.fullWidth ? 'full' : '' }`} style={{
|
<div className={`card-wrapper ${ props.fullWidth ? 'full' : '' } ${ props.doTransition ? 'overflow-hidden' : '' }`} style={{
|
||||||
height: props.doTransition ? (showing ? height : 0) : "initial",
|
height: props.doTransition ? (showing ? height : 0) : "initial",
|
||||||
}}>
|
}}>
|
||||||
<div className={`card ${ showing ? 'show' : '' } ${ props.doTransition ? 'doTransition' : '' }`} ref={measureRef}>
|
<div className={`card ${ showing ? 'show' : '' } ${ props.doTransition ? 'doTransition' : '' }`} ref={measureRef}>
|
||||||
|
|
Loading…
Reference in a new issue