Skip to content

Commit

Permalink
removing graph from small size and others tweaks (#2472)
Browse files Browse the repository at this point in the history
Co-authored-by: Felipe da Conceicao Guimaraes <felipeda@microsoft.com>
  • Loading branch information
guimafelipe and Felipe da Conceicao Guimaraes committed Mar 27, 2024
1 parent 2aedd26 commit 43adc94
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"url": "${cpuGraphUrl}",
"height": "${chartHeight}",
"width": "${chartWidth}",
"$when": "${$host.widgetSize != \"small\"}",
"horizontalAlignment": "center"
},
{
Expand Down Expand Up @@ -64,25 +65,31 @@
]
},
{
"type": "TextBlock",
"isSubtle": true,
"text": "%CPUUsage_Widget_Template/Processes%",
"wrap": true
},
{
"type": "TextBlock",
"size": "medium",
"text": "${cpuProc1}"
},
{
"type": "TextBlock",
"size": "medium",
"text": "${cpuProc2}"
},
{
"type": "TextBlock",
"size": "medium",
"text": "${cpuProc3}"
"type": "Container",
"$when": "${$host.widgetSize != \"small\"}",
"items": [
{
"type": "TextBlock",
"isSubtle": true,
"text": "%CPUUsage_Widget_Template/Processes%",
"wrap": true
},
{
"type": "TextBlock",
"size": "medium",
"text": "${cpuProc1}"
},
{
"type": "TextBlock",
"size": "medium",
"text": "${cpuProc2}"
},
{
"type": "TextBlock",
"size": "medium",
"text": "${cpuProc3}"
}
]
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"url": "${gpuGraphUrl}",
"height": "${chartHeight}",
"width": "${chartWidth}",
"$when": "${$host.widgetSize != \"small\"}",
"horizontalAlignment": "center"
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"url": "${memGraphUrl}",
"height": "${chartHeight}",
"width": "${chartWidth}",
"$when": "${$host.widgetSize != \"small\"}",
"horizontalAlignment": "center"
},
{
Expand All @@ -40,7 +41,7 @@
{
"text": "${usedMem}",
"type": "TextBlock",
"size": "large",
"size": "${if($host.widgetSize == \"small\", \"medium\", \"large\")}",
"weight": "bolder"
}
]
Expand All @@ -58,7 +59,7 @@
{
"text": "${allMem}",
"type": "TextBlock",
"size": "large",
"size": "${if($host.widgetSize == \"small\", \"medium\", \"large\")}",
"weight": "bolder",
"horizontalAlignment": "right"
}
Expand Down Expand Up @@ -107,6 +108,7 @@
},
{
"type": "ColumnSet",
"$when": "${$host.widgetSize == \"large\"}",
"columns": [
{
"type": "Column",
Expand Down Expand Up @@ -146,6 +148,7 @@
},
{
"type": "ColumnSet",
"$when": "${$host.widgetSize != \"small\"}",
"columns": [
{
"type": "Column",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"url": "${netGraphUrl}",
"height": "${chartHeight}",
"width": "${chartWidth}",
"$when": "${$host.widgetSize != \"small\"}",
"horizontalAlignment": "center"
},
{
Expand Down

0 comments on commit 43adc94

Please sign in to comment.