Skip to content

Commit b76e84d

Browse files
juristrFrozenPandaz
authored andcommittedSep 27, 2024
fix(nx-dev): adjust powerpack mobile view
(cherry picked from commit fc39bea)

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed
 

‎nx-dev/ui-powerpack/src/lib/get-started.tsx

+12-10
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ export function GetStarted(): ReactElement {
8585
/>
8686
</svg>
8787
<div className="space-y-6 lg:space-y-12">
88-
<div className="flex items-start gap-6">
89-
<div className="relative flex size-10 place-items-center rounded-full p-4 shadow-sm ring-1 ring-slate-200 dark:ring-slate-800/60">
88+
<div className="flex flex-col items-center lg:flex-row lg:items-start lg:gap-6">
89+
<div className="mb-4 flex size-10 place-items-center rounded-full p-4 shadow-sm ring-1 ring-slate-200 lg:mb-0 dark:ring-slate-800/60">
9090
<span className="text-lg text-slate-900 dark:text-slate-100">
9191
1
9292
</span>
9393
</div>
94-
<div>
94+
<div className="text-center lg:text-left">
9595
<h4 className="relative text-base font-medium leading-6 text-slate-900 dark:text-slate-100">
9696
Buy an Nx Powerpack license
9797
</h4>
@@ -104,21 +104,22 @@ export function GetStarted(): ReactElement {
104104
</div>
105105
</div>
106106
</div>
107-
<div className="flex items-start gap-6">
108-
<div className="relative flex size-10 place-items-center rounded-full p-4 shadow-sm ring-1 ring-slate-200 dark:ring-slate-800/60">
107+
108+
<div className="flex flex-col items-center lg:flex-row lg:items-start lg:gap-6">
109+
<div className="mb-4 flex size-10 place-items-center rounded-full p-4 shadow-sm ring-1 ring-slate-200 lg:mb-0 dark:ring-slate-800/60">
109110
<span className="text-lg text-slate-900 dark:text-slate-100">
110111
2
111112
</span>
112113
</div>
113-
<div>
114+
<div className="text-center lg:text-left">
114115
<h4 className="relative text-base font-medium leading-6 text-slate-900 dark:text-slate-100">
115116
Activate Nx Powerpack right from your terminal
116117
</h4>
117118
<p className="mt-2">
118119
In your Nx workspace, run the following command to activate
119120
your new license.
120121
</p>
121-
<div className="mt-4">
122+
<div className="mt-4 text-left">
122123
<TerminalOutput
123124
command="nx activate-powerpack {YOUR_LICENSE_KEY}"
124125
path="~/my-workspace"
@@ -128,13 +129,14 @@ export function GetStarted(): ReactElement {
128129
</div>
129130
</div>
130131
</div>
131-
<div className="flex items-start gap-6">
132-
<div className="relative flex size-10 place-items-center rounded-full p-4 shadow-sm ring-1 ring-slate-200 dark:ring-slate-800/60">
132+
133+
<div className="flex flex-col items-center lg:flex-row lg:items-start lg:gap-6">
134+
<div className="mb-4 flex size-10 place-items-center rounded-full p-4 shadow-sm ring-1 ring-slate-200 lg:mb-0 dark:ring-slate-800/60">
133135
<span className="text-lg text-slate-900 dark:text-slate-100">
134136
3
135137
</span>
136138
</div>
137-
<div>
139+
<div className="text-center lg:text-left">
138140
<h4 className="relative text-base font-medium leading-6 text-slate-900 dark:text-slate-100">
139141
Install Powerpack plugins
140142
</h4>

‎nx-dev/ui-powerpack/src/lib/powerpack-features.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function PowerpackFeatures(): ReactElement {
3838
variant="secondary"
3939
size="default"
4040
>
41-
Learn more about self-hosted cache storage
41+
Learn self-hosted cache storage
4242
</ButtonLink>
4343
</div>
4444
</div>

0 commit comments

Comments
 (0)
Please sign in to comment.