mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-23 14:13:21 +01:00
No popping in standalone mode
This commit is contained in:
parent
4acb6aa3c2
commit
d6575037eb
2 changed files with 9 additions and 2 deletions
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue