Skip to content

Commit 7344f3a

Browse files
authored
Merge pull request RustedLessPass#22 from RustedLessPass/add-icon-img
feat: 💄 add icon img
2 parents 73d2ac4 + 35842d6 commit 7344f3a

File tree

2 files changed

+29
-9
lines changed

2 files changed

+29
-9
lines changed

index.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,19 @@ summary[role="link"].secondary:is([aria-current], :hover, :active, :focus) {
109109
/* Footer */
110110
body > footer {
111111
padding: 1rem 0;
112+
}
113+
114+
nav ul li img {
115+
vertical-align: top;
116+
margin-right: 0.1rem;
117+
border-radius: var(--pico-border-radius);
118+
}
119+
120+
nav ul li strong {
121+
vertical-align: middle;
122+
margin-left: 0.1rem;
123+
}
124+
125+
p {
126+
text-wrap: pretty;
112127
}

src/app.rs

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ impl Component for App {
139139
<nav class="container-fluid">
140140
<ul>
141141
<li>
142-
<a href="./"><strong>{"RustedLessPass"}</strong></a> // Application name
142+
<a href="./"><img src="assets/favicon.ico" alt="Description of the image" width="37.7048437335240"
143+
height="37.7048437335240"/><strong>{"RustedLessPass"}</strong></a> // Application name
143144
</li>
144145
</ul>
145146
<ul>
@@ -173,8 +174,8 @@ impl Component for App {
173174
<fieldset role="group">
174175
<TextInput value={self.password.clone()} input_type={if self.show_input_password {"text"} else {"password"}}
175176
name={"Password"} autocomplete={"current-password"} on_change={on_password_change} /> // Password input field
176-
<p><button
177-
style="border-top-left-radius: 0px;border-bottom-left-radius: 0px;white-space: nowrap;margin-left: 0rem; padding-left: 0.5rem; padding-right: 0.5rem; align-self: center;"
177+
<button
178+
style="white-space: nowrap;margin-left: 0rem; padding-left: 0.5rem; padding-right: 0.5rem; align-self: center;"
178179
onclick={on_password_click}>
179180
<i class={match self.fingerprint.get(0) { Some(s)=> format!("fa fa-fw {}", s),
180181
None => String::new(),
@@ -185,19 +186,23 @@ impl Component for App {
185186
<i class={match self.fingerprint.get(2) { Some(s)=> format!("fa fa-fw {}", s),
186187
None => String::new(),
187188
}} style="margin-left: 0.2rem;"></i>
188-
</button></p> // Password fingerprint icons
189+
</button> // Password fingerprint icons
189190
</fieldset>
190191
<fieldset>
191192
<nav>
192193

193194
<Switch label="a-z" onchange={settings_callback!(ctx.link(), settings; lowercase)}
194-
value={settings.lowercase.clone()} value_disabled={if self.disabled.clone() == "a-z" { true } else { false }}/> // Switch for lowercase
195+
value={settings.lowercase.clone()} value_disabled={if self.disabled.clone()=="a-z" { true } else { false
196+
}} /> // Switch for lowercase
195197
<Switch label="A-Z" onchange={settings_callback!(ctx.link(), settings; uppercase)}
196-
value={settings.uppercase.clone()} value_disabled={if self.disabled.clone() == "A-Z" { true } else { false }}/> // Switch for uppercase
198+
value={settings.uppercase.clone()} value_disabled={if self.disabled.clone()=="A-Z" { true } else { false
199+
}} /> // Switch for uppercase
197200
<Switch label="0-9" onchange={settings_callback!(ctx.link(), settings; numbers)}
198-
value={settings.numbers.clone()} value_disabled={if self.disabled.clone() == "0-9" { true } else { false }}/> // Switch for numbers
201+
value={settings.numbers.clone()} value_disabled={if self.disabled.clone()=="0-9" { true } else { false
202+
}} /> // Switch for numbers
199203
<Switch label="%!@" onchange={settings_callback!(ctx.link(), settings; symbols)}
200-
value={settings.symbols.clone()} value_disabled={if self.disabled.clone() == "%!@" { true } else { false }}/> // Switch for symbols
204+
value={settings.symbols.clone()} value_disabled={if self.disabled.clone()=="%!@" { true } else { false
205+
}} /> // Switch for symbols
201206

202207
</nav>
203208
<div class="grid" style="padding: 0rem;">
@@ -226,4 +231,4 @@ impl Component for App {
226231
</body>
227232
}
228233
}
229-
}
234+
}

0 commit comments

Comments
 (0)