Skip to content

Commit db480e6

Browse files
authored
Merge pull request axonivy#823 from axonivy/fix-responsive-welcome-page
XIVY-18150 Fix responsive welcome page
2 parents 8c3bea9 + 23d49ef commit db480e6

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

webviews/welcome-page/index.html

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>Welcome Page</title>
7-
</head>
83

9-
<body id="webview-body">
10-
<div id="root" style="height: 100%"></div>
11-
<script type="module" src="/src/index.tsx"></script>
12-
</body>
13-
</html>
4+
<head>
5+
<meta charset="UTF-8" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Welcome Page</title>
8+
</head>
9+
10+
<body id="webview-body">
11+
<div id="root"></div>
12+
<script type="module" src="/src/index.tsx"></script>
13+
</body>
14+
15+
</html>

webviews/welcome-page/src/components/WelcomePage.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
.welcome-page {
77
background-color: var(--background);
88
width: 100%;
9-
height: 100%;
9+
min-height: 100vh;
1010
}
1111

1212
.welcome-page-content {
@@ -37,6 +37,12 @@
3737
gap: 1em;
3838
}
3939

40+
@media (max-width: 1050px) {
41+
.welcome-page-row {
42+
grid-template-columns: 1fr;
43+
}
44+
}
45+
4046
.welcome-section-divider {
4147
background-color: var(--N200);
4248
border: none;

webviews/welcome-page/src/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { ThemeProvider } from '@axonivy/ui-components';
22
import '@axonivy/vscode-webview-common/css/colors.css';
33
import * as React from 'react';
44
import { createRoot } from 'react-dom/client';
5-
65
import type { NotificationType } from 'vscode-messenger-common';
76
import { WelcomePage } from './components/WelcomePage';
87
import { initTranslation } from './i18n';

0 commit comments

Comments
 (0)