mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +00:00
[PM-20325] - Misc design fixes/tweaks (#14309)
* fix icon sizing in option selection * fix close button vertical centering * fix cipher item update text * fix missing header background color * fix brand logo positioning in notification header
This commit is contained in:
@@ -35,5 +35,6 @@ const closeButtonStyles = (theme: Theme) => css`
|
|||||||
> svg {
|
> svg {
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export function OptionSelectionButton({
|
|||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const iconSize = "15px";
|
const iconSize = "16px";
|
||||||
|
|
||||||
const selectionButtonStyles = ({
|
const selectionButtonStyles = ({
|
||||||
disabled,
|
disabled,
|
||||||
@@ -94,7 +94,8 @@ const selectionButtonStyles = ({
|
|||||||
|
|
||||||
> svg {
|
> svg {
|
||||||
max-width: ${iconSize};
|
max-width: ${iconSize};
|
||||||
height: fit-content;
|
max-height: ${iconSize};
|
||||||
|
height: auto;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|||||||
@@ -19,13 +19,13 @@ export function CipherAction({
|
|||||||
? BadgeButton({
|
? BadgeButton({
|
||||||
buttonAction: handleAction,
|
buttonAction: handleAction,
|
||||||
// @TODO localize
|
// @TODO localize
|
||||||
buttonText: "Update item",
|
buttonText: "Update",
|
||||||
theme,
|
theme,
|
||||||
})
|
})
|
||||||
: EditButton({
|
: EditButton({
|
||||||
buttonAction: handleAction,
|
buttonAction: handleAction,
|
||||||
// @TODO localize
|
// @TODO localize
|
||||||
buttonText: "Edit item",
|
buttonText: "Edit",
|
||||||
theme,
|
theme,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,8 +12,13 @@ export function BrandIconContainer({ iconLink, theme }: { iconLink?: URL; theme:
|
|||||||
}
|
}
|
||||||
|
|
||||||
const brandIconContainerStyles = css`
|
const brandIconContainerStyles = css`
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
|
||||||
> svg {
|
> svg {
|
||||||
width: 20px;
|
width: auto;
|
||||||
height: fit-content;
|
height: 100%;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ const notificationHeaderStyles = ({
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
background-color: ${themes[theme].background};
|
background-color: ${themes[theme].background.DEFAULT};
|
||||||
padding: 12px 16px 8px 16px;
|
padding: 12px 16px 8px 16px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
|
|||||||
@@ -62,14 +62,15 @@ const optionItemStyles = css`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const optionItemIconContainerStyles = css`
|
const optionItemIconContainerStyles = css`
|
||||||
|
display: flex;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
flex-shrink: 1;
|
flex-shrink: 1;
|
||||||
width: ${optionItemIconWidth}px;
|
max-width: ${optionItemIconWidth}px;
|
||||||
height: ${optionItemIconWidth}px;
|
max-height: ${optionItemIconWidth}px;
|
||||||
|
|
||||||
> svg {
|
> svg {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: fit-content;
|
height: auto;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user