Skip to content

Commit 65391c5

Browse files
Gourav DwivediGourav Dwivedi
authored andcommitted
UI bug fixes related to alignment
1 parent c006ff8 commit 65391c5

File tree

5 files changed

+194
-128
lines changed

5 files changed

+194
-128
lines changed

Samples/AspDotCore/WebApp/WebApp/Controllers/LoginController.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ public LoginController(IConfiguration config)
2121
}
2222

2323
[AllowAnonymous]
24-
[HttpPost]
25-
public IActionResult Login([FromBody]UserModel login)
24+
[HttpGet("GetToken")]
25+
public IActionResult GetToken(string username, string password)
2626
{
27+
var login = new UserModel{ Username = username, Password = password };
2728
IActionResult response = Unauthorized();
2829
var user = AuthenticateUser(login);
2930

@@ -61,7 +62,7 @@ private UserModel AuthenticateUser(UserModel login)
6162
{
6263
UserModel user = null;
6364

64-
if (login.Username == "Test" && login.Password == "Abc@123")
65+
if (login.Username == "admin" && login.Password == "admin")
6566
{
6667
user = new UserModel { Username = "Test", EmailAddress = "test@test.com" };
6768
}

src/css/main.css

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ body {
88
padding : 0px ;
99
margin: 0px;
1010
font-family: 'Roboto', 'Helvetica', sans-serif;
11+
min-height: 600px ;
1112
}
1213

1314
.tab {
@@ -74,7 +75,7 @@ li:hover {
7475
}
7576

7677
.method-arguments {
77-
padding-top: 10px;
78+
padding-top: 0px;
7879
}
7980

8081
.args-container {
@@ -114,7 +115,7 @@ ul.nav .nav-link.active:hover {
114115
padding: 10px;
115116
}
116117

117-
#loggerView {
118+
.loggerView {
118119
word-wrap: break-word;/*Used because long log messages going out of div.*/
119120
border-radius: 5px 5px 5px 5px;
120121
box-sizing: border-box;
@@ -138,15 +139,15 @@ ul.nav .nav-link.active:hover {
138139
margin-bottom: 20px;
139140
}
140141

141-
#logger-container {
142+
.logger-container {
142143
padding: 10px;
143144
margin-top: 50px;
144145
}
145146

146147
#app-logs {
147148
overflow-x: hidden;
148149
overflow-y: auto;
149-
min-height: 50px;
150+
min-height: 5px;
150151
max-height: 400px;
151152
}
152153

@@ -188,6 +189,28 @@ ul.nav .nav-link.active:hover {
188189
border-color: rgba(63, 81, 181, 1);
189190
}
190191

192+
.label-title {
193+
font-family: "Roboto", "Helvetica", "Arial", sans-serif;
194+
text-transform: uppercase;
195+
font-size: 14px;
196+
color: rgba(0,0,0,.54);
197+
font-weight: 500;
198+
}
199+
200+
.chk-text {
201+
font-family: "Roboto", "Helvetica", "Arial", sans-serif;
202+
font-size: 12px;
203+
color: rgba(0,0,0,.54);
204+
font-weight: 500;
205+
}
206+
207+
.logger-text {
208+
font-family: "Roboto", "Helvetica", "Arial", sans-serif;
209+
font-size: 12px;
210+
color: rgba(0,0,0,.54);
211+
font-weight: 500;
212+
}
213+
191214
/* .mdl-layout__header-row {
192215
padding: 0px 0px 0px 80px;
193216
margin: 0 0 0 0;

src/js/components/app.component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ class AppComponent extends HTMLElement {
2121
<div class="panel panel-primary">
2222
<ul class="nav nav-tabs justify-content-end nav-justified" id="tabheader">
2323
<li class="nav-item">
24-
<a class="nav-link active" data-tab-type="basic" data-toggle="tab" href="#appview">Basic</a>
24+
<a class="nav-link active tab-text" data-tab-type="basic" data-toggle="tab" href="#appview">Basic</a>
2525
</li>
2626
<li class="nav-item">
27-
<a class="nav-link" data-tab-type="advance" data-toggle="tab" href="#appview">Advance</a>
27+
<a class="nav-link tab-text" data-tab-type="advance" data-toggle="tab" href="#appview">Advance</a>
2828
</li>
2929
</ul>
3030

0 commit comments

Comments
 (0)