You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/chapters/chapter2.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -208,9 +208,7 @@ In `app.component.ts`, add a `<StackLayout>` element within your component’s `
208
208
209
209
<divclass="exercise-end"></div>
210
210
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:
214
212
215
213

216
214

@@ -359,12 +357,12 @@ Open your app’s `app/app.component.ts` file, find `<Button text="Sign in"></Bu
359
357
360
358
<divclass="exercise-end"></div>
361
359
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:
363
361
364
362

365
363

366
364
367
-
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.
365
+
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.
368
366
369
367
To continue polishing the visuals of this login screen, let’s look at how we can add an image of this app’s logo.
0 commit comments