Skip to content

Commit

Permalink
fix: reaction indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonymous committed Dec 24, 2024
1 parent 80eb28e commit 2193b6d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/frontend/src/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ export const Form = ({
)
}
className={`max_width_col ${
dragAndDropping ? "active_element" : null
dragAndDropping ? "drag_and_drop" : null
}`}
onChange={(event) =>
onValueChange(event.target.value)
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const Header = ({
}
/>
<button
className={"active"}
className="active"
onClick={() => (location.href = "#/new")}
>
POST
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/poll.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const PollView = ({
height: "0.6em",
marginTop: "0.1em",
}}
className="active"
className="active_element"
></div>
<div className="small_text top_half_spaced">
<UserList ids={data.votes[id]} />
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ const PostBar = ({
<div onClick={goInside}>
<div
ref={ref}
className="active"
className="active_element"
style={{ height: "1px", width: 0 }}
></div>
<div className="post_bar vcentered">
Expand Down
5 changes: 3 additions & 2 deletions src/frontend/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ article {
border: 1px solid $frame;
}

.active_element {
.drag_and_drop {
border: 4px dashed orange;
}

Expand Down Expand Up @@ -960,7 +960,8 @@ a.accent,
background: $frame;
}

button.active {
button.active,
.active_element {
background: $accent;
color: #111111;
}
Expand Down

0 comments on commit 2193b6d

Please sign in to comment.