Add icon borders

This commit is contained in:
Georgi Gardev
2023-11-20 14:14:11 +02:00
parent 4ec9ec0784
commit d2f4d4445c
3 changed files with 12 additions and 1 deletions

View File

@@ -28,6 +28,12 @@
.Icon {
width: 36px;
max-height: 54px;
padding: 4px;
}
.Icon.Bordered {
background-color: rgba(255, 255, 255, .9);
border-radius: .5rem;
}
.Url {

View File

@@ -19,7 +19,11 @@ export function App(props: AppProps) {
<span class={style.Url}>{props.location}</span>
</Show>
</div>
<img class={style.Icon} src={getAppIcon(props.icon, props.icon_source)} alt={props.name} />
<img
classList={{ [style.Icon]: true, [style.Bordered]: props.icon_border }}
src={getAppIcon(props.icon, props.icon_source)}
alt={props.name}
/>
<Show when={props.shortcut}>
<span class={style.Index}>{props.shortcut}</span>
</Show>

View File

@@ -10,6 +10,7 @@ export type AppDefinition = {
url: string;
icon: string;
icon_source?: string;
icon_border?: boolean;
tags: string;
location?: string;
shortcut?: string;