diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-11-01 20:55:38 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-11-01 20:55:38 +0100 |
commit | 7fef6c4fbdf928e31f627ae13058b676c65b5598 (patch) | |
tree | e4030d0536ebb7b852314e2bc44b96f30e7b488a | |
parent | Frontend: Result component: Show "No Description" if empty description (diff) | |
download | OSSE-7fef6c4fbdf928e31f627ae13058b676c65b5598.tar.gz OSSE-7fef6c4fbdf928e31f627ae13058b676c65b5598.tar.bz2 OSSE-7fef6c4fbdf928e31f627ae13058b676c65b5598.zip |
Frontend: Result component: Add more font related css
-rw-r--r-- | frontend/src/app.rs | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/frontend/src/app.rs b/frontend/src/app.rs index b2637ac..064d49a 100644 --- a/frontend/src/app.rs +++ b/frontend/src/app.rs @@ -20,20 +20,32 @@ fn result_component(props: &ResultComponentProps) -> Html { a { text-decoration: none; } - .underline-hover:hover { + + .url { + font-size: 0.75em; + } + + .title { + font-size: 1.25em; + } + .title:hover { text-decoration: underline; } + + .description { + font-size: 1em; + } "# ) .unwrap(); let style = style.get_class_name().to_owned(); html! { - <div class={format!("mb-5 {}", style)}> + <div class={format!("mb-4 {}", style)}> <a href={props.result.url.clone()}> - <p class="text-muted">{props.result.url.clone()}</p> - <p class="underline-hover">{props.result.title.clone()}</p> + <p class="url text-muted mb-0">{props.result.url.clone()}</p> + <p class="title mb-1">{props.result.title.clone()}</p> </a> - <p> + <p class="description"> {match props.result.description.clone().as_str() { "" => "No Description.", otherwise => otherwise, |