diff --git a/app/components/AddNewButton.module.css b/app/components/AddNewButton.module.css
index 5c8e94a02..bb98b7005 100644
--- a/app/components/AddNewButton.module.css
+++ b/app/components/AddNewButton.module.css
@@ -1,14 +1,7 @@
.addNewButton {
- --picture-size: 18px;
- --icon-size: 14px;
- --button-height: 28px;
- --border-width: 2px;
- --inner-border-radius: 6px;
-
- padding-block: 0 !important;
- padding-inline: 0 !important;
- background-color: transparent !important;
- height: var(--button-height);
+ padding: 0;
+ height: var(--input-height-small);
+ overflow: hidden;
}
.iconsContainer {
@@ -17,32 +10,24 @@
align-items: center;
justify-content: center;
background-color: var(--color-accent-low);
- height: calc(var(--button-height) - var(--border-width) * 2);
- border-radius: var(--inner-border-radius) 0 0 var(--inner-border-radius);
+ height: 100%;
padding-inline: var(--s-1);
}
.iconsContainer > svg {
- max-width: var(--icon-size);
- max-height: var(--icon-size);
- min-width: var(--icon-size);
- min-height: var(--icon-size);
+ width: calc(var(--input-height-small) / 2);
color: var(--color-text-accent);
stroke-width: 4px;
}
.iconsContainer > picture {
- max-width: var(--picture-size);
- max-height: var(--picture-size);
- min-width: var(--picture-size);
- min-height: var(--picture-size);
+ width: fit-content;
}
.textContainer {
padding-inline: var(--s-1-5);
background-color: var(--color-text-accent) !important;
- height: calc(var(--button-height) - var(--border-width) * 2);
+ height: 100%;
display: flex;
align-items: center;
- border-radius: 0 var(--inner-border-radius) var(--inner-border-radius) 0;
}
diff --git a/app/components/CustomizedColorsInput.tsx b/app/components/CustomizedColorsInput.tsx
index d47a28b42..c05b11c86 100644
--- a/app/components/CustomizedColorsInput.tsx
+++ b/app/components/CustomizedColorsInput.tsx
@@ -95,7 +95,6 @@ export function CustomizedColorsInput({
{t(`custom.colors.${cssVar}`)}
{
const extras: Record = {};
diff --git a/app/components/Input.tsx b/app/components/Input.tsx
index d0b219b2a..40e0a8903 100644
--- a/app/components/Input.tsx
+++ b/app/components/Input.tsx
@@ -53,6 +53,7 @@ export function Input({
>
{leftAddon ? {leftAddon}
: null}
label: string;
bottomText?: string;
errorText?: string;
- size?: FormFieldSize;
}
export function SendouDatePicker({
label,
errorText,
bottomText,
- size,
isRequired,
...rest
}: SendouDatePickerProps) {
return (
{label}
-
+
{(segment) => }