mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-10-13 15:28:05 +01:00
fix: Enhance splash screen layout with responsive design for stack elements (#2159)
Co-authored-by: Satyapriya Bai <v-satybai@microsoft.com>
This commit is contained in:
parent
c6eda097fc
commit
372ac6921f
@ -30,6 +30,21 @@
|
|||||||
margin: 0px auto;
|
margin: 0px auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
.splashStackContainer {
|
||||||
|
.splashStackRow {
|
||||||
|
display: flex;
|
||||||
|
gap: 0 16px;
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 16px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
width: 85% !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.mainButtonsContainer {
|
.mainButtonsContainer {
|
||||||
.flex-display();
|
.flex-display();
|
||||||
|
@ -126,8 +126,12 @@ export class SplashScreen extends React.Component<SplashScreenProps> {
|
|||||||
useDatabases.getState().sampleDataResourceTokenCollection
|
useDatabases.getState().sampleDataResourceTokenCollection
|
||||||
) {
|
) {
|
||||||
return (
|
return (
|
||||||
<Stack style={{ width: "66%", cursor: "pointer", margin: "40px auto" }} tokens={{ childrenGap: 16 }}>
|
<Stack
|
||||||
<Stack horizontal tokens={{ childrenGap: 16 }}>
|
className="splashStackContainer"
|
||||||
|
style={{ width: "66%", cursor: "pointer", margin: "40px auto" }}
|
||||||
|
tokens={{ childrenGap: 16 }}
|
||||||
|
>
|
||||||
|
<Stack className="splashStackRow" horizontal>
|
||||||
<SplashScreenButton
|
<SplashScreenButton
|
||||||
imgSrc={QuickStartIcon}
|
imgSrc={QuickStartIcon}
|
||||||
title={"Launch quick start"}
|
title={"Launch quick start"}
|
||||||
@ -147,7 +151,7 @@ export class SplashScreen extends React.Component<SplashScreenProps> {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Stack horizontal tokens={{ childrenGap: 16 }}>
|
<Stack className="splashStackRow" horizontal>
|
||||||
{useQueryCopilot.getState().copilotEnabled && (
|
{useQueryCopilot.getState().copilotEnabled && (
|
||||||
<SplashScreenButton
|
<SplashScreenButton
|
||||||
imgSrc={CopilotIcon}
|
imgSrc={CopilotIcon}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user