Skip to content

Commit 1f414f8

Browse files
fix(power-bi): 💄 Set max height for power-bi reports to prevent scroll bars (#617)
1 parent 223f380 commit 1f414f8

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.vscode/settings.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
2-
"conventionalCommits.scopes": ["Workspace-react", "all", "garden"],
2+
"conventionalCommits.scopes": [
3+
"Workspace-react",
4+
"all",
5+
"garden",
6+
"power-bi"
7+
],
38
"markdownlint.config": {
49
"MD033": {
510
"allowed_elements": ["a", "p", "img"]

packages/power-bi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@equinor/workspace-powerbi",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"type": "module",
55
"sideEffects": false,
66
"license": "MIT",

packages/power-bi/src/lib/components/loadedReport/LoadedReport.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export const LoadedReport = ({ config, onReportReady }: LoadedReportProps) => {
4242

4343
const StyledAspectRatio = styled.div<{ width: number }>`
4444
height: ${({ width }) => `${defaultAspectRatio * width}px`};
45+
max-height: calc(100% - 5px);
4546
`;
4647

4748
const PowerBiWrapper = styled.div.attrs({

packages/workspace-fusion/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@equinor/workspace-fusion",
3-
"version": "9.0.4",
3+
"version": "9.0.5",
44
"type": "module",
55
"sideEffects": false,
66
"license": "MIT",

0 commit comments

Comments
 (0)