Ensure story buttons are clickable despite being in a no-drag region

This commit is contained in:
trevor-signal
2023-06-06 09:53:10 -04:00
committed by GitHub
parent 6f3b56c6fa
commit b2f5febbf9
5 changed files with 7 additions and 1 deletions

View File

@@ -111,6 +111,7 @@ audio {
button {
cursor: pointer;
font-size: inherit;
-webkit-app-region: no-drag;
}
button.grey {
border-radius: 5px;

View File

@@ -27,6 +27,7 @@
padding-inline: 16px;
text-align: center;
user-select: none;
-webkit-app-region: no-drag;
@include keyboard-mode {
@include focus-box-shadow($color-white, $color-ultramarine);

View File

@@ -59,6 +59,8 @@
vertical-align: text-bottom;
border: none;
opacity: 0;
// while it is invisible, allow it to be draggable
-webkit-app-region: drag;
transition: margin-inline-start $transition, opacity $transition;
&:disabled {

View File

@@ -13,6 +13,8 @@
top: var(--titlebar-height);
position: absolute;
user-select: none;
-webkit-app-region: no-drag;
z-index: $z-index-popup-overlay;
&__container {

View File

@@ -171,6 +171,7 @@ export function App({
'dark-theme': theme === ThemeType.dark,
})}
>
{contents}
<ToastManager
OS={OS}
hideToast={hideToast}
@@ -185,7 +186,6 @@ export function App({
{isShowingStoriesView && renderStories(toggleStoriesView)}
{hasSelectedStoryData &&
renderStoryViewer(() => viewStory({ closeViewer: true }))}
{contents}
</div>
</TitleBarContainer>
);