Skip to content

Commit af0b6f7

Browse files
authored
🐛 Fix(web): Prevent long titles from breaking event styles (#231)
* fix(web): convert event title from Textrea to Input Inputs don't automatically wrap like text areas, so this fixes the bug in #142 * fix(web): set fixed width for SidebarTabContainer This prevents a long title from expanding the rectangle width
1 parent 387a09f commit af0b6f7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/web/src/views/Calendar/components/Sidebar/styled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const SidebarTabContainer = styled.div`
7070
height: calc(100% - ${ICON_ROW_HEIGHT}px);
7171
overflow: auto;
7272
padding: 0 25px;
73-
width: 100%;
73+
width: ${SIDEBAR_OPEN_WIDTH}px;
7474
7575
::-webkit-scrollbar {
7676
width: 8px;

packages/web/src/views/Forms/EventForm/styled.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Flex } from "@web/components/Flex";
55
import { Textarea } from "@web/components/Textarea";
66
import { hoverColorByPriority } from "@web/common/styles/theme.util";
77
import { PriorityButton } from "@web/components/Button/styled";
8+
import { Input } from "@web/components/Input";
89

910
import { StyledFormProps } from "./types";
1011

@@ -56,9 +57,10 @@ export const StyledSubmitRow = styled(Flex)`
5657
padding-top: 18px;
5758
`;
5859

59-
export const StyledTitle = styled(Textarea)`
60+
export const StyledTitle = styled(Input)`
6061
background: transparent;
6162
font-size: ${({ theme }) => theme.text.size["5xl"]};
63+
font-weight: 600;
6264
&:hover {
6365
filter: brightness(90%);
6466
}

0 commit comments

Comments
 (0)