Ensure story buttons are clickable despite being in a no-drag region
This commit is contained in:
parent
6f3b56c6fa
commit
b2f5febbf9
5 changed files with 7 additions and 1 deletions
|
@ -111,6 +111,7 @@ audio {
|
||||||
button {
|
button {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
|
-webkit-app-region: no-drag;
|
||||||
}
|
}
|
||||||
button.grey {
|
button.grey {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
padding-inline: 16px;
|
padding-inline: 16px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
-webkit-app-region: no-drag;
|
||||||
|
|
||||||
@include keyboard-mode {
|
@include keyboard-mode {
|
||||||
@include focus-box-shadow($color-white, $color-ultramarine);
|
@include focus-box-shadow($color-white, $color-ultramarine);
|
||||||
|
|
|
@ -59,6 +59,8 @@
|
||||||
vertical-align: text-bottom;
|
vertical-align: text-bottom;
|
||||||
border: none;
|
border: none;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
// while it is invisible, allow it to be draggable
|
||||||
|
-webkit-app-region: drag;
|
||||||
transition: margin-inline-start $transition, opacity $transition;
|
transition: margin-inline-start $transition, opacity $transition;
|
||||||
|
|
||||||
&:disabled {
|
&:disabled {
|
||||||
|
|
|
@ -13,6 +13,8 @@
|
||||||
top: var(--titlebar-height);
|
top: var(--titlebar-height);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
-webkit-app-region: no-drag;
|
||||||
|
|
||||||
z-index: $z-index-popup-overlay;
|
z-index: $z-index-popup-overlay;
|
||||||
|
|
||||||
&__container {
|
&__container {
|
||||||
|
|
|
@ -171,6 +171,7 @@ export function App({
|
||||||
'dark-theme': theme === ThemeType.dark,
|
'dark-theme': theme === ThemeType.dark,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
|
{contents}
|
||||||
<ToastManager
|
<ToastManager
|
||||||
OS={OS}
|
OS={OS}
|
||||||
hideToast={hideToast}
|
hideToast={hideToast}
|
||||||
|
@ -185,7 +186,6 @@ export function App({
|
||||||
{isShowingStoriesView && renderStories(toggleStoriesView)}
|
{isShowingStoriesView && renderStories(toggleStoriesView)}
|
||||||
{hasSelectedStoryData &&
|
{hasSelectedStoryData &&
|
||||||
renderStoryViewer(() => viewStory({ closeViewer: true }))}
|
renderStoryViewer(() => viewStory({ closeViewer: true }))}
|
||||||
{contents}
|
|
||||||
</div>
|
</div>
|
||||||
</TitleBarContainer>
|
</TitleBarContainer>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue