Skip to content

Commit 4840bb8

Browse files
committed
we don't actually specify horizontal/vertical layout in the code here, so removing. Also a few syntax tweaks.
1 parent ece3cfd commit 4840bb8

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/chapters/chapter2.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,7 @@ In `app.component.ts`, add a `<StackLayout>` element within your component’s `
208208

209209
<div class="exercise-end"></div>
210210

211-
The stack layout is a UI element, and as such, it has attributes just like the `<TextField>` and `<Button>` elements you used in the previous section. Here, the `orientation="vertical"` attribute tells the stack layout to arrange its child elements vertically.
212-
213-
After your app updates with this change, you'll see that your login page’s UI elements stack up:
211+
The stack layout is a UI element, and as such, it has attributes just like the `<TextField>` and `<Button>` elements you used in the previous section. After your app updates with this change, you'll see that your login page’s UI elements stack up:
214212

215213
![login 2](images/chapter2/ios/2.png)
216214
![login 2](images/chapter2/android/2.png)
@@ -359,12 +357,12 @@ Open your app’s `app/app.component.ts` file, find `<Button text="Sign in"></Bu
359357

360358
<div class="exercise-end"></div>
361359

362-
And with this last `id` change in place your app is starting to look a little nicer:
360+
With this last `id` change in place your app is starting to look a little nicer:
363361

364362
![login 4](images/chapter2/ios/4.png)
365363
![login 4](images/chapter2/android/4.png)
366364

367-
As you can see, in NativeScript you have a lot of options for how you can apply CSS rules. You can apply rules globallyeither for both platforms in `app.css`, for iOS in `platform.ios.css`, or for Android in `platform.android.css`. And you can also apply rules at the component level, while maintaining the same flexibility to target different platforms if required.
365+
As you can see, in NativeScript you have a lot of options for how you can apply CSS rules. You can apply rules globally either for both platforms in `app.css`, for iOS in `platform.ios.css`, or for Android in `platform.android.css`. And you can also apply rules at the component level, while maintaining the same flexibility to target different platforms if required.
368366

369367
To continue polishing the visuals of this login screen, let’s look at how we can add an image of this app’s logo.
370368

0 commit comments

Comments
 (0)