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%; width: 100%;
color: var(--red-color); 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> <span>
<button <button
type="button" type="button"
class="light" class="light pop-button"
disabled={uiState === 'loading'} disabled={uiState === 'loading'}
onClick={() => { 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 // 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 && ( hasOpener && (
<button <button
type="button" type="button"
class="light" class="light pop-button"
disabled={uiState === 'loading'} disabled={uiState === 'loading'}
onClick={() => { 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 // 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