Skip to content

Commit

Permalink
Merge pull request #815 from Tatsinnit/fix/ux-cluster-propperties
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubramanianaks authored Jul 25, 2024
2 parents 6a58e16 + 64c853c commit 4753298
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webview-ui/src/ClusterProperties/ClusterDisplayToolTip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ export function ClusterDisplayToolTip(props: ClusterDisplayToolTipProps) {
</span>
<span className={styles.tooltiptext}>
<table>
<caption style={{ fontWeight: "bold", textAlign: "left" }}>Current Versions Available</caption>
<caption className={styles.tableHeader}>Current Versions Available</caption>
<tr>
<th>Version</th>
<th>Patch Versions</th>
<th>Support Plan</th>
<th>Preview</th>
</tr>
{props.clusterInfo.supportedVersions.map((v) => (
<tr key={v.version}>
<tr key={v.version} className={styles.separator}>
<td>{v.version}</td>
<td>
{v.patchVersions.map((patchVersion, index) => (
Expand All @@ -41,7 +41,7 @@ export function ClusterDisplayToolTip(props: ClusterDisplayToolTipProps) {
))}
<tfoot>
<tr>
<td colSpan={3} style={{ textAlign: "left" }}>
<td colSpan={3} className={styles.textLeftAlign}>
<VSCodeLink href="https://learn.microsoft.com/en-us/azure/aks/supported-kubernetes-versions?tabs=azure-cli#aks-kubernetes-release-calendar">
Learn more
</VSCodeLink>
Expand Down
14 changes: 14 additions & 0 deletions webview-ui/src/ClusterProperties/ClusterProperties.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,17 @@ td:not(:last-child) {
.buttonDiv {
margin: 0.3125rem 0 0.625rem 7.875rem;
}

.separator {
outline: solid thin;
}

.textLeftAlign {
text-align: left;
}

.tableHeader {
font-weight: bold;
text-align: left;
margin-bottom: 0.375rem;
}

0 comments on commit 4753298

Please sign in to comment.