-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core/tree): handle text overflow (#1428)
- Loading branch information
1 parent
0d797bf
commit c19a537
Showing
10 changed files
with
147 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@siemens/ix": patch | ||
--- | ||
|
||
fix(core/tree): handle text overflow gracefully |
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
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
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 |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<!-- | ||
SPDX-FileCopyrightText: 2024 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> | ||
<body> | ||
<div style="height: 12rem; width: 100%"> | ||
<ix-tree root="root" id="tree"></ix-tree> | ||
</div> | ||
|
||
<script> | ||
(async () => { | ||
await window.customElements.whenDefined('ix-tree'); | ||
const tree = document.getElementById('tree'); | ||
const context = { | ||
root: { | ||
isExpanded: true, | ||
isSelected: false, | ||
}, | ||
sample: { | ||
isExpanded: true, | ||
isSelected: false, | ||
}, | ||
}; | ||
|
||
const model = { | ||
root: { | ||
id: 'root', | ||
data: { | ||
icon: '', | ||
name: '', | ||
}, | ||
hasChildren: true, | ||
children: ['sample'], | ||
}, | ||
sample: { | ||
id: 'sample', | ||
data: { | ||
name: 'Sample', | ||
icon: 'star', | ||
}, | ||
hasChildren: true, | ||
children: ['sample-child-1', 'sample-child-2'], | ||
}, | ||
'sample-child-1': { | ||
id: 'sample-child-1', | ||
data: { | ||
name: 'Sample Child 1', | ||
icon: 'cut', | ||
}, | ||
hasChildren: false, | ||
children: [], | ||
}, | ||
'sample-child-2': { | ||
id: 'sample-child-2', | ||
data: { | ||
name: 'Sample Child 2 lorem ipsum dolor', | ||
icon: 'print', | ||
}, | ||
hasChildren: false, | ||
children: [], | ||
}, | ||
}; | ||
|
||
context['sample-child-85'] = { | ||
isExpanded: false, | ||
isSelected: true, | ||
}; | ||
|
||
tree.model = { ...model }; | ||
tree.context = { ...context }; | ||
})(); | ||
</script> | ||
<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
+2.35 KB
...e.e2e.ts-snapshots/tree-item-overflow-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
+2.52 KB
....e2e.ts-snapshots/tree-item-overflow-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.