Skip to content

Commit 16f7750

Browse files
committed
position link
1 parent c423ea1 commit 16f7750

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

components/dashboard/src/admin/License.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ export default function License() {
5252
<Card>
5353
{licenseLevel}
5454
{paid}
55-
<p className="mt-4 font-semibold">Available features:</p>
55+
<div className="mt-4 font-semibold text-sm">Available features:</div>
5656
<div className="flex flex-col items-start text-sm">
5757
{features &&
5858
features.map((feat: string) => (
5959
<span className="inline-flex space-x-1">
6060
{featureList?.includes(feat) ? (
61-
<CheckSvg fill="currentColor" className="self-center" />
61+
<CheckSvg fill="currentColor" className="self-center mt-1" />
6262
) : (
63-
<XSvg fill="currentColor" className="self-center h-2" />
63+
<XSvg fill="currentColor" className="self-center h-2 mt-1" />
6464
)}
6565
<span>{capitalizeInitials(feat)}</span>
6666
</span>
@@ -75,7 +75,7 @@ export default function License() {
7575
<p className="dark:text-gray-500 pt-2 font-semibold">License Type</p>
7676
<h4 className="dark:text-gray-300 text-lg">{capitalizeInitials(license?.type || "")}</h4>
7777
<a
78-
className="gp-link flex flex-row mr-4 justify-end font-semibold space-x-2"
78+
className="gp-link flex flex-row mr-2 justify-end font-semibold space-x-2 mt-6"
7979
href="https://www.gitpod.io/self-hosted"
8080
target="_blank"
8181
>
@@ -118,7 +118,7 @@ function licenseLevel(level: string): ReactElement {
118118
}
119119

120120
function additionalLicenseInfo(data: string): ReactElement {
121-
return <div className="dark:text-gray-500 font-semibold">{data}</div>;
121+
return <div className="dark:text-gray-500 text-gray-400 font-semibold text-sm">{data}</div>;
122122
}
123123

124124
function defaultMessage(): ReactElement[] {
@@ -162,7 +162,10 @@ function professionalPlan(userCount: number, seats: number, trial: boolean, vali
162162
if (typeof expDate.getTime !== "function") {
163163
return trial ? additionalLicenseInfo("Trial") : additionalLicenseInfo("Paid");
164164
} else {
165-
return additionalLicenseInfo("Expires on " + expDate.toDateString());
165+
return additionalLicenseInfo(
166+
"Expires on " +
167+
expDate.toLocaleDateString("en-DB", { year: "numeric", month: "short", day: "numeric" }),
168+
);
166169
}
167170
};
168171

components/dashboard/src/components/Card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function Card(p: { className?: string; children?: React.ReactNode }) {
88
return (
99
<div
1010
className={
11-
"flex rounded-xl w-72 h-64 px-4 bg-gray-800 dark:bg-gray-100 text-gray-300 dark:text-gray-500" +
11+
"flex rounded-xl w-72 h-64 px-4 bg-gray-800 dark:bg-gray-100 text-gray-200 dark:text-gray-500" +
1212
(p.className || "")
1313
}
1414
>

0 commit comments

Comments
 (0)