1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-15 10:34:05 +02:00

Fix browser frame

This commit is contained in:
Phuoc Nguyen
2019-11-23 21:42:51 +07:00
parent ddbfc40f14
commit 516e306a6c

View File

@@ -27,7 +27,7 @@ const BrowserFrame = ({ content, source }) => {
}} }}
> >
<div <div
className="overflow-scroll absolute top-0 left-0 h-100 w-100" className={`overflow-scroll absolute top-0 left-0 h-100 w-100 ${isContentActive ? 'o-1' : 'o-0'}`}
style={{ style={{
backfaceVisibility: 'hidden', backfaceVisibility: 'hidden',
WebkitBackfaceVisibility: 'hidden', WebkitBackfaceVisibility: 'hidden',
@@ -35,7 +35,7 @@ const BrowserFrame = ({ content, source }) => {
{content} {content}
</div> </div>
<div <div
className="absolute top-0 left-0 h-100 w-100" className={`absolute top-0 left-0 h-100 w-100 ${isContentActive ? 'o-0' : 'o-1'}`}
style={{ style={{
backfaceVisibility: 'hidden', backfaceVisibility: 'hidden',
transform: 'rotateY(180deg)', transform: 'rotateY(180deg)',