mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 01:49:40 +05:00
refactor: update style of Related Releases Card on Release page
This commit is contained in:
parent
d2b38dcbe2
commit
6cade5a7d0
11 changed files with 296 additions and 33 deletions
|
@ -6,26 +6,22 @@ export const Chip = (props: {
|
|||
devider?: string;
|
||||
bg_color?: string;
|
||||
style?: React.CSSProperties;
|
||||
className?: string;
|
||||
}) => {
|
||||
return (
|
||||
<div
|
||||
className={`px-2 sm:px-4 py-0.5 sm:py-1 rounded-sm ${
|
||||
props.bg_color || "bg-gray-500"
|
||||
} ${props.icon_name ? "flex items-center justify-center gap-1" : ""}`}
|
||||
style={props.style || {}}
|
||||
>
|
||||
<div className={`${props.bg_color || "bg-gray-500"} rounded-sm flex items-center justify-center ${props.className || ""}`}>
|
||||
{props.icon_name && (
|
||||
<span
|
||||
className={`iconify w-4 h-4 sm:w-6 sm:h-6 ${props.icon_name}`}
|
||||
className={`iconify w-4 h-4 sm:w-6 sm:h-6 ml-2 ${props.icon_name}`}
|
||||
style={
|
||||
{
|
||||
"color": "var(--icon-color)",
|
||||
color: "var(--icon-color)",
|
||||
"--icon-color": props.icon_color || "#fff",
|
||||
} as React.CSSProperties
|
||||
}
|
||||
></span>
|
||||
)}
|
||||
<p className="text-xs text-white xl:text-base">
|
||||
<p className="px-2 py-1 text-white xl:text-base">
|
||||
{props.name}
|
||||
{props.name && props.devider ? props.devider : " "}
|
||||
{props.name_2}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue