mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 15:28:47 +00:00
Enhancement: resources network widget (#4327)
This commit is contained in:
parent
a06964dd17
commit
897309a47c
6 changed files with 86 additions and 4 deletions
|
@ -10,6 +10,7 @@ export default function Resource({
|
|||
percentage,
|
||||
expanded = false,
|
||||
additionalClassNames = "",
|
||||
wide = false,
|
||||
}) {
|
||||
const Icon = icon;
|
||||
|
||||
|
@ -18,7 +19,11 @@ export default function Resource({
|
|||
className={`flex-none flex flex-row items-center mr-3 py-1.5 information-widget-resource ${additionalClassNames}`}
|
||||
>
|
||||
<Icon className="text-theme-800 dark:text-theme-200 w-5 h-5 resource-icon" />
|
||||
<div className={`flex flex-col ml-3 text-left min-w-[85px] ${expanded ? " expanded" : ""}`}>
|
||||
<div
|
||||
className={`flex flex-col ml-3 text-left ${expanded ? " expanded" : ""} ${
|
||||
wide ? " min-w-[120px]" : "min-w-[85px]"
|
||||
}`}
|
||||
>
|
||||
<div className="text-theme-800 dark:text-theme-200 text-xs flex flex-row justify-between">
|
||||
<div className="pl-0.5">{value}</div>
|
||||
<div className="pr-1">{label}</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue