No popping in standalone mode

This commit is contained in:
Lim Chee Aun 2022-12-20 20:23:57 +08:00
parent 4acb6aa3c2
commit d6575037eb
2 changed files with 9 additions and 2 deletions

View file

@ -359,3 +359,10 @@
width: 100%;
color: var(--red-color);
}
@media (display-mode: standalone) {
/* No popping in standalone mode */
#compose-container .pop-button {
display: none;
}
}

View file

@ -348,7 +348,7 @@ function Compose({
<span>
<button
type="button"
class="light"
class="light pop-button"
disabled={uiState === 'loading'}
onClick={() => {
// If there are non-ID media attachments (not yet uploaded), show confirmation dialog because they are not going to be passed to the new window
@ -408,7 +408,7 @@ function Compose({
hasOpener && (
<button
type="button"
class="light"
class="light pop-button"
disabled={uiState === 'loading'}
onClick={() => {
// If there are non-ID media attachments (not yet uploaded), show confirmation dialog because they are not going to be passed to the new window