Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Adds text wrapping for long words in the title #637

Merged
merged 3 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/renderer/src/routes/Tasks/TaskList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const TaskList: React.FC<Props> = ({
{...dragProvided.draggableProps}
{...dragProvided.dragHandleProps}
ref={dragProvided.innerRef}
style={{ overflow: "hidden" }}
>
<Droppable droppableId={listId}>
{(dropProvided) => (
Expand Down
11 changes: 4 additions & 7 deletions app/renderer/src/styles/routes/tasks/card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ import { StyledButton, StyledButtonPrimary } from "styles";
export const StyledCardText = styled.p<{ done?: boolean }>`
min-height: 2.4rem;
margin-right: 5px;
white-space: pre-wrap;
word-break: break-word;

display: flex;
align-items: center;
overflow: hidden;

${(p) =>
p.done &&
Expand Down Expand Up @@ -56,14 +59,10 @@ export const StyledCardActionWrapper = styled.div`

export const StyledCardEditButton = styled(StyledButton)`
${ButtonCardStyles};
color: transparent;
background-color: transparent;
`;

export const StyledCardDeleteButton = styled(StyledButton)`
${ButtonCardStyles};
color: transparent;
background-color: transparent;

&:hover {
color: var(--color-pink) !important;
Expand Down Expand Up @@ -98,9 +97,7 @@ export const StyledCard = styled.div<CardProps>`
border-bottom-color: var(--color-border-input-secondary);
background-color: var(--color-bg-task-card);

:w transition:
box-shadow 320ms ease-out,
background-color 320ms ease-out,
transition: box-shadow 320ms ease-out, background-color 320ms ease-out,
border-color 320ms ease-out;

${(p) =>
Expand Down
3 changes: 3 additions & 0 deletions app/renderer/src/styles/routes/tasks/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ export const StyledTaskHeading = styled.h3`
font-weight: 500;
text-transform: uppercase;
color: var(--color-heading-text);

overflow: hidden;
overflow-wrap: break-word;
`;

export const StyledTaskHeadeInput = styled(StyledInput)`
Expand Down
Loading