-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core/basic-navigation): increase content width to 100% (#571)
- Loading branch information
1 parent
9a37cff
commit adbb655
Showing
10 changed files
with
137 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,5 @@ | |
position: relative; | ||
width: 100vw; | ||
height: 100vh; | ||
padding: 1rem 0rem 0rem 1rem; | ||
padding: 0rem 0rem 0rem 0rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+11.2 KB
...pshots/basic-navigation-content-width-1-chromium---theme-classic-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11 KB
...shots/basic-navigation-content-width-1-chromium---theme-classic-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions
60
packages/core/src/tests/basic-navigation/content-width/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<!-- | ||
SPDX-FileCopyrightText: 2023 Siemens AG | ||
SPDX-License-Identifier: MIT | ||
--> | ||
|
||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" | ||
/> | ||
<title>Stencil Component Starter</title> | ||
</head> | ||
<style> | ||
main { | ||
position: relative; | ||
display: block; | ||
width: 100%; | ||
height: 100%; | ||
background-color: red; | ||
} | ||
</style> | ||
<body> | ||
<ix-basic-navigation application-name="Test application!"> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="32" | ||
height="32" | ||
viewBox="0 0 184.567 138" | ||
slot="logo" | ||
> | ||
<defs> | ||
<linearGradient | ||
id="x05mhzd7ga" | ||
x1=".5" | ||
x2=".5" | ||
y2="1" | ||
gradientUnits="objectBoundingBox" | ||
> | ||
<stop offset="0" stop-color="#00ffb9" /> | ||
<stop offset="1" stop-color="#0cc" /> | ||
</linearGradient> | ||
</defs> | ||
<path | ||
data-name="Vereinigungsmenge 41" | ||
d="M0 126c0-.337.014-.67.041-1H0V60a12 12 0 1 1 24 0v65h-.042c.027.329.042.663.042 1a12 12 0 0 1-24 0zm50.944 8.052a12 12 0 0 1 0-16.969L99.027 69 50.944 20.919A12 12 0 0 1 67.915 3.947L116 52.03l48.083-48.084a12 12 0 0 1 16.969 16.971L132.969 69l48.084 48.084a12 12 0 0 1-16.969 16.971L116 85.971l-48.085 48.082a12 12 0 0 1-16.971 0zM0 12a12 12 0 1 1 12 12A12 12 0 0 1 0 12z" | ||
style="fill: url(#x05mhzd7ga)" | ||
/> | ||
</svg> | ||
<ix-menu> | ||
<ix-menu-item tab-icon="star">Item 1</ix-menu-item> | ||
<ix-menu-item tab-icon="print">Item 2</ix-menu-item> | ||
</ix-menu> | ||
<main>Example content</main> | ||
</ix-basic-navigation> | ||
<script src="http://127.0.0.1:8080/scripts/e2e/load-e2e-runtime.js"></script> | ||
</body> | ||
</html> |
65 changes: 65 additions & 0 deletions
65
packages/core/src/tests/map-navigation/content-width/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<!-- | ||
SPDX-FileCopyrightText: 2023 Siemens AG | ||
SPDX-License-Identifier: MIT | ||
--> | ||
|
||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" | ||
/> | ||
<title>Stencil Component Starter</title> | ||
<style> | ||
.main { | ||
position: relative; | ||
display: block; | ||
width: 100%; | ||
height: 100%; | ||
background-color: red; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<ix-map-navigation | ||
application-name="Test Application" | ||
navigation-title="Some other content" | ||
> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="32" | ||
height="32" | ||
viewBox="0 0 184.567 138" | ||
slot="logo" | ||
> | ||
<defs> | ||
<linearGradient | ||
id="x05mhzd7ga" | ||
x1=".5" | ||
x2=".5" | ||
y2="1" | ||
gradientUnits="objectBoundingBox" | ||
> | ||
<stop offset="0" stop-color="#00ffb9" /> | ||
<stop offset="1" stop-color="#0cc" /> | ||
</linearGradient> | ||
</defs> | ||
<path | ||
data-name="Vereinigungsmenge 41" | ||
d="M0 126c0-.337.014-.67.041-1H0V60a12 12 0 1 1 24 0v65h-.042c.027.329.042.663.042 1a12 12 0 0 1-24 0zm50.944 8.052a12 12 0 0 1 0-16.969L99.027 69 50.944 20.919A12 12 0 0 1 67.915 3.947L116 52.03l48.083-48.084a12 12 0 0 1 16.969 16.971L132.969 69l48.084 48.084a12 12 0 0 1-16.969 16.971L116 85.971l-48.085 48.082a12 12 0 0 1-16.971 0zM0 12a12 12 0 1 1 12 12A12 12 0 0 1 0 12z" | ||
style="fill: url(#x05mhzd7ga)" | ||
/> | ||
</svg> | ||
<ix-menu> | ||
<ix-menu-item>Item 1</ix-menu-item> | ||
<ix-menu-item>Item 2</ix-menu-item> | ||
<ix-menu-item>Item 3</ix-menu-item> | ||
</ix-menu> | ||
<div slot="sidebar-content">Sidebar content</div> | ||
<div class="main">Sidebar content</div> | ||
</ix-map-navigation> | ||
<script src="http://127.0.0.1:8080/scripts/e2e/load-e2e-runtime.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+18.1 KB
...napshots/map-navigation-content-width-1-chromium---theme-classic-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+17.7 KB
...apshots/map-navigation-content-width-1-chromium---theme-classic-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.