Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
fix: search panel tag line break behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
zxch3n committed Sep 26, 2020
1 parent 90b6f24 commit 8f6e3d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pomodoro-logger",
"version": "0.4.0",
"version": "0.4.1",
"description": "Pomodoro Logger -- When a time logger meets Pomodoro and Kanban board",
"main": "./dist/main.js",
"scripts": {
Expand Down
13 changes: 10 additions & 3 deletions src/components/common/Search/SearchPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ const Title = styled.p`
color: #777;
font-size: 0.8rem;
`;

const Group = styled.div`
padding: 4px;
max-width: 280px;
word-break: normal;
line-height: 1.8;
`;

export const SearchPanel = ({
Expand All @@ -33,9 +37,12 @@ export const SearchPanel = ({
<Title>#TAGS</Title>
<Group>
{tags.map((x) => (
<span className="pl-tag" key={x} onClick={setSearch(x)}>
{x}
</span>
<>
<span className="pl-tag" key={x} onClick={setSearch(x)}>
{x}
</span>
<span/>
</>
))}
</Group>
{/* <Title>HISTORY</Title>
Expand Down

0 comments on commit 8f6e3d0

Please sign in to comment.