1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 13:23: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:
Jonathan Prusik
2025-04-16 11:08:51 -04:00
committed by GitHub
parent 0d0314d16d
commit b413272bd5
6 changed files with 18 additions and 10 deletions

View File

@@ -35,5 +35,6 @@ const closeButtonStyles = (theme: Theme) => css`
> svg {
width: 20px;
height: 20px;
vertical-align: middle;
}
`;

View File

@@ -44,7 +44,7 @@ export function OptionSelectionButton({
`;
}
const iconSize = "15px";
const iconSize = "16px";
const selectionButtonStyles = ({
disabled,
@@ -94,7 +94,8 @@ const selectionButtonStyles = ({
> svg {
max-width: ${iconSize};
height: fit-content;
max-height: ${iconSize};
height: auto;
}
`;

View File

@@ -19,13 +19,13 @@ export function CipherAction({
? BadgeButton({
buttonAction: handleAction,
// @TODO localize
buttonText: "Update item",
buttonText: "Update",
theme,
})
: EditButton({
buttonAction: handleAction,
// @TODO localize
buttonText: "Edit item",
buttonText: "Edit",
theme,
});
}

View File

@@ -12,8 +12,13 @@ export function BrandIconContainer({ iconLink, theme }: { iconLink?: URL; theme:
}
const brandIconContainerStyles = css`
display: flex;
justify-content: center;
width: 24px;
height: 24px;
> svg {
width: 20px;
height: fit-content;
width: auto;
height: 100%;
}
`;

View File

@@ -49,7 +49,7 @@ const notificationHeaderStyles = ({
display: flex;
align-items: center;
justify-content: flex-start;
background-color: ${themes[theme].background};
background-color: ${themes[theme].background.DEFAULT};
padding: 12px 16px 8px 16px;
white-space: nowrap;

View File

@@ -62,14 +62,15 @@ const optionItemStyles = css`
`;
const optionItemIconContainerStyles = css`
display: flex;
flex-grow: 1;
flex-shrink: 1;
width: ${optionItemIconWidth}px;
height: ${optionItemIconWidth}px;
max-width: ${optionItemIconWidth}px;
max-height: ${optionItemIconWidth}px;
> svg {
width: 100%;
height: fit-content;
height: auto;
}
`;