Skip to content

Commit

Permalink
Merge branch 'fix-ai-menu-style' into 'master'
Browse files Browse the repository at this point in the history
new style for ai actions modal in posts

See merge request kchat/webapp!889
  • Loading branch information
antonbuks committed Aug 20, 2024
2 parents 9fc02e5 + b5f235f commit 3fd9e27
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import Svg from '../svg';

const IconReactForMe = () => (
<Svg
width='18'
height='18'
width='16'
height='16'
viewBox='0 0 18 18'
fill='none'
>
Expand Down
23 changes: 20 additions & 3 deletions webapp/channels/src/plugins/ai/components/dot_menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const DropdownMenu = styled.div`
text-align: left;
list-style: none;
padding: 10px 0;
padding: 3px 0;
font-family: Open Sans;
font-style: normal;
font-weight: normal;
Expand Down Expand Up @@ -135,23 +135,40 @@ const DotMenu = ({
}
}}
>
{title && <DropdownMenuTitle>{title}</DropdownMenuTitle>}
{children}
</Menu>
</Dropdown>
);
};

export const DropdownMenuTitle = styled.div`
&& {
font-family: "SuisseIntl", sans-serif;
font-style: normal;
font-weight: normal;
font-size: 12px;
color: rgba(var(--center-channel-color-rgb), 0.75);
padding: 5px 10px;
text-decoration: unset;
display: inline-flex;
align-items: center;
min-height: 32px;
}
`;

export const DropdownMenuItemStyled = styled.a`
&& {
font-family: "SuisseIntl", sans-serif;
font-style: normal;
font-weight: normal;
font-size: 14px;
color: var(--center-channel-color);
padding: 10px 20px;
padding: 5px 10px;
text-decoration: unset;
display: inline-flex;
align-items: center;
min-height: 32px;
>.icon {
margin-right: 8px;
Expand Down Expand Up @@ -187,7 +204,7 @@ export const iconSplitStyling = css`
gap: 8px;
`;

export const DropdownMenuItem = (props: { children: React.ReactNode, onClick?: () => void, className?: string}) => {
export const DropdownMenuItem = (props: { children: React.ReactNode; onClick?: () => void; className?: string}) => {
return (
<DropdownMenuItemStyled
href='#'
Expand Down

0 comments on commit 3fd9e27

Please sign in to comment.