Skip to content

Commit

Permalink
Fix action too long text (#1428)
Browse files Browse the repository at this point in the history
  • Loading branch information
takurinton committed Sep 22, 2023
1 parent 06b8065 commit 55ad8c3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/few-chefs-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ingred-ui": patch
---

fix action text too long
8 changes: 7 additions & 1 deletion src/components/Calendar/internal/Actions/styled.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import styled from "styled-components";
import { ScrollArea } from "../../../..";
import ScrollArea from "../../../ScrollArea";

export const Action = styled.button<{ clicked: boolean }>`
cursor: pointer;
background: none;
border: none;
display: block;
margin: 0;
max-width: 130px;
width: 100%;
text-align: left;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
padding: ${({ theme }) => theme.spacing}px;
color: ${({ clicked, theme }) =>
clicked ? theme.palette.primary.main : theme.palette.black};
Expand Down

0 comments on commit 55ad8c3

Please sign in to comment.