Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ $mobile-breakpoint: "384px";
@media (max-width: $mobile-breakpoint) { @content; }
}

// For the desktop screens that are smaller on height so the full plugin is not visible (close button is not visible)
@mixin low-height-screen {
@media (max-height: 680px) { @content; }
}

@function rem($value) {
$remValue: calc($value / 16) + rem;

Expand Down
17 changes: 17 additions & 0 deletions src/styles/components/wrapper.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
border-radius: 0;
}

@include low-height-screen {
top: 0;
right: 0;
bottom: 0;

border-radius: 0;
}

.swp-chat-box {
position: relative;
z-index: 4;
Expand All @@ -54,6 +62,10 @@
height: 100%;
}

@include low-height-screen {
height: 100%;
}

.swp-chat-box-loader {
position: absolute;

Expand Down Expand Up @@ -117,6 +129,11 @@
width: 100%;
height: 0;
}

@include low-height-screen {
flex-grow: 1;
height: 0;
}
}
}
}
Loading