Skip to content

Commit

Permalink
message hover effect
Browse files Browse the repository at this point in the history
  • Loading branch information
Puyodead1 committed Aug 12, 2023
1 parent 0648dd9 commit d7bd977
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ const MessageListItem = styled.li``;
const Container = styled.div<{ isHeader?: boolean }>`
display: flex;
flex-direction: row;
padding: 2px 12px;
padding: ${(props) => (props.isHeader ? "4" : "2")}px 12px;
align-items: center;
margin-top: ${(props) => (props.isHeader ? "20px" : undefined)};
&:hover {
background-color: var(--background-primary-highlight);
}
`;

const MessageContentContainer = styled.div<{ isHeader?: boolean }>`
Expand Down
3 changes: 3 additions & 0 deletions src/contexts/Theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useAppStore } from "../stores/AppStore";
export type ThemeVariables =
| "backgroundPrimary"
| "backgroundPrimaryAlt"
| "backgroundPrimaryHighlight"
| "backgroundSecondary"
| "backgroundSecondaryAlt"
| "backgroundSecondaryHighlight"
Expand Down Expand Up @@ -52,6 +53,7 @@ export const ThemePresets: Record<string, Theme> = {
light: {
backgroundPrimary: "#ffffff",
backgroundPrimaryAlt: "",
backgroundPrimaryHighlight: "",
backgroundSecondary: "#ebe5e4",
backgroundSecondaryAlt: "#ebe5e4",
backgroundSecondaryHighlight: "#ebe5e4",
Expand Down Expand Up @@ -90,6 +92,7 @@ export const ThemePresets: Record<string, Theme> = {
dark: {
backgroundPrimary: "#2e2e2e",
backgroundPrimaryAlt: "#2a2a2a",
backgroundPrimaryHighlight: "#262626",
backgroundSecondary: "#232323",
backgroundSecondaryAlt: "#1e1e1e",
backgroundSecondaryHighlight: "#383838",
Expand Down

0 comments on commit d7bd977

Please sign in to comment.