Share menu is a compact 340px, never wider than the viewport; right-aligned under the toolbar on phones
This commit is contained in:
parent
5411bc3de2
commit
9203b2fc87
1 changed files with 4 additions and 4 deletions
|
|
@ -52,7 +52,7 @@ useShadowStyles(`
|
|||
position:absolute;
|
||||
top:0;
|
||||
right:48px;
|
||||
width:380px;
|
||||
width:min(340px, calc(100vw - 80px));
|
||||
background:#161b22;
|
||||
border:1px solid #30363d;
|
||||
border-radius:12px;
|
||||
|
|
@ -369,10 +369,10 @@ useShadowStyles(`
|
|||
.share-pop{
|
||||
position:fixed;
|
||||
top:64px;
|
||||
left:10px;
|
||||
right:10px;
|
||||
left:auto;
|
||||
right:12px;
|
||||
z-index:3000;
|
||||
width:auto;
|
||||
width:min(340px, calc(100vw - 24px));
|
||||
max-width:none;
|
||||
max-height:calc(100vh - 96px);
|
||||
overflow-y:auto;
|
||||
|
|
|
|||
Loading…
Reference in a new issue