1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-13 17:44:19 +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
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={{
backfaceVisibility: 'hidden',
WebkitBackfaceVisibility: 'hidden',
@@ -35,7 +35,7 @@ const BrowserFrame = ({ content, source }) => {
{content}
</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={{
backfaceVisibility: 'hidden',
transform: 'rotateY(180deg)',