Fix calling needs permission screen not fullscreen

This commit is contained in:
Jamie Kyle 2023-12-20 08:16:21 -08:00 committed by GitHub
parent fab72205c4
commit cce7424e76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 2 deletions

View file

@ -4438,7 +4438,10 @@ button.module-image__border-overlay:focus {
flex-direction: column; flex-direction: column;
height: var(--window-height); height: var(--window-height);
justify-content: center; justify-content: center;
position: relative; position: fixed;
top: 0;
/* stylelint-disable-next-line liberty/use-logical-spec */
left: 0;
width: 100%; width: 100%;
&__text { &__text {

View file

@ -0,0 +1,27 @@
// Copyright 2023 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import React from 'react';
import { action } from '@storybook/addon-actions';
import type { ComponentMeta } from '../storybook/types';
import { setupI18n } from '../util/setupI18n';
import enMessages from '../../_locales/en/messages.json';
import type { Props } from './CallNeedPermissionScreen';
import { CallNeedPermissionScreen } from './CallNeedPermissionScreen';
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
const i18n = setupI18n('en', enMessages);
export default {
title: 'Components/CallNeedPermissionScreen',
component: CallNeedPermissionScreen,
args: {
i18n,
close: action('close'),
conversation: getDefaultConversation(),
},
} satisfies ComponentMeta<Props>;
export function Default(args: Props): JSX.Element {
return <CallNeedPermissionScreen {...args} />;
}

View file

@ -9,7 +9,7 @@ import { Intl } from './Intl';
import { ContactName } from './conversation/ContactName'; import { ContactName } from './conversation/ContactName';
import type { ConversationType } from '../state/ducks/conversations'; import type { ConversationType } from '../state/ducks/conversations';
type Props = { export type Props = {
conversation: Pick< conversation: Pick<
ConversationType, ConversationType,
| 'acceptedMessageRequest' | 'acceptedMessageRequest'