Skip to content

Commit

Permalink
Merge pull request #149 from boostcamp-2020/hotfix
Browse files Browse the repository at this point in the history
Hotfix 내용 master 브랜치에 반영
  • Loading branch information
seokju2ng authored Dec 20, 2020
2 parents c5e099b + 5425b15 commit 9fc27ac
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 35 deletions.
40 changes: 13 additions & 27 deletions src/constants/mathquillLatex.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
const mathquillLatex = [
// "\\Downarrow",
// "\\Im",
// "\\Leftarrow",
// "\\Leftrightarrow",
// "\\Longleftarrow",
// "\\Longleftrightarrow",
// "\\Longrightarrow",
// "\\Re",
// "\\Rightarrow",
// "\\Sigma",
// "\\Uparrow",
// "\\Updownarrow",
// "\\Upsilon",
"\\Downarrow",
"\\Im",
"\\Leftarrow",
"\\Leftrightarrow",
"\\Longleftarrow",
"\\Longleftrightarrow",
"\\Longrightarrow",
"\\Re",
"\\Rightarrow",
"\\Sigma",
"\\Uparrow",
"\\Updownarrow",
"\\Upsilon",
"\\aleph",
"\\alpha",
"\\amalg",
"\\angle",
"\\approx",
"\\ast",
Expand Down Expand Up @@ -107,10 +106,6 @@ const mathquillLatex = [
"\\ngtr",
"\\ni",
"\\nless",
"\\nsubset",
"\\nsubseteq",
"\\nsupset",
"\\nsupseteq",
"\\nparallel",
"\\nu",
"\\nwarrow",
Expand All @@ -119,9 +114,7 @@ const mathquillLatex = [
"\\oint_{ }^{ }",
"\\omega",
"\\omikron",
"\\ominus",
"\\parallel",
"\\parallelogram",
"\\partial",
"\\perp",
"\\phi",
Expand All @@ -141,7 +134,6 @@ const mathquillLatex = [
"\\rightharpoondown",
"\\rightharpoonup",
"\\searrow",
"\\setminus",
"\\sharp",
"\\sigma",
"\\simeq",
Expand All @@ -150,18 +142,12 @@ const mathquillLatex = [
"\\sqcap",
"\\sqcup",
"\\sqrt{ }",
"\\sqsubset",
"\\sqsubseteq",
"\\sqsupset",
"\\sqsupseteq",
"\\square",
"\\subset",
"\\subseteq",
"\\succ",
"\\succeq",
"\\sum",
"\\supset",
"\\supseteq",
"\\surd",
"\\swarrow",
"\\tau",
Expand Down
2 changes: 1 addition & 1 deletion src/containers/BookmarkContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function BookmarkContainer({ theme, setTabState }) {
const handleEditButton = ({ id, description }) => async () => {
const answer = await popup({
mode: "prompt",
message: "해당 북마크의 변경할 이름을 적어주세요!",
message: "해당 북마크의 변경할 키워드를 작성해주세요.",
placeholder: description,
});

Expand Down
2 changes: 1 addition & 1 deletion src/popupStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const popupStyle = theme => `
left: 50%;
transform: translateX(-50%);
transition: 1s;
z-index: 3;
z-index: 1000;
box-shadow: 0 0 15px 1px ${color.grey};
font-weight: bold;
display: flex;
Expand Down
16 changes: 11 additions & 5 deletions src/presentationals/AutoComplete.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ import color from "../constants/color";
const AutoKeywordLayout = styled.div`
position: fixed;
left: ${({ x }) => x}px;
top: ${({ y, fontSize }) => y + fontSize}px;
top: ${({ top }) => top}px;
width: fit-content;
height: fit-content;
background: ${({ theme }) => color.mainTheme4[theme]};
color: ${({ theme }) => color.mainTheme0[theme]};
box-shadow: 0 0 7px 3px black;
${({ theme }) => `
background: ${color.mainTheme4[theme]};
color: ${color.mainTheme0[theme]};
box-shadow: 0 0 5px 2px ${color.mainTheme1[theme]};
`}
visibility: ${({ isOpen }) => (isOpen ? "visible" : "hidden")};
z-index: 500;
`;
Expand Down Expand Up @@ -53,7 +55,11 @@ function AutoComplete({
theme,
}) {
return (
<AutoKeywordLayout x={x} y={y} isOpen={isOpen} fontSize={fontSize} theme={theme}>
<AutoKeywordLayout
x={x}
top={y + fontSize}
isOpen={isOpen && recommandationList.length}
theme={theme}>
{ isOpen && recommandationList.map((item, index) => (
<HightLight data-id={index} onClick={onClick} onMouseEnter={onMouseEnter}
key={index} isFocused={index === parseInt(targetIndex, 10)}>
Expand Down
2 changes: 1 addition & 1 deletion src/presentationals/CustomForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Form = styled.form`
border: none;
outline: none;
background-color: ${({ theme }) => color.mainTheme4[theme]};
color: white;
color: ${({ theme }) => color.mainTheme0[theme]};
text-align: center;
padding: 3px;
margin: 3px;
Expand Down

0 comments on commit 9fc27ac

Please sign in to comment.