Skip to content

Commit

Permalink
fix: ImageNote周辺のダークモード
Browse files Browse the repository at this point in the history
  • Loading branch information
nakasyou committed Feb 6, 2024
1 parent 8e45f96 commit a989e28
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/islands/note/components/note-components/Controller.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ export const Controller = (props: {
notesLength: number
}) => {
return <div class="flex justify-center gap-1 bg-surface text-on-surface">
<button class="grid hover:drop-shadow drop-shadow-none disabled:drop-shadow-none disabled:bg-outline rounded-full p-1 border" onClick={props.onRemove}>
<button class="grid hover:drop-shadow drop-shadow-none disabled:opacity-40 rounded-full p-1 border" onClick={props.onRemove}>
<div innerHTML={removeIconSize(IconX)} class="w-8 h-8" />
</button>
<button class="grid hover:drop-shadow drop-shadow-none disabled:drop-shadow-none disabled:bg-outline rounded-full p-1 border"
<button class="grid hover:drop-shadow drop-shadow-none disabled:opacity-40 rounded-full p-1 border"
onClick={props.onUpNote}
disabled={props.noteIndex === 0}>
<div innerHTML={removeIconSize(IconArrowNarrowUp)} class="w-8 h-8" />
</button>
<button
class="grid hover:drop-shadow drop-shadow-none disabled:drop-shadow-none disabled:bg-outline rounded-full p-1 border"
class="grid hover:drop-shadow drop-shadow-none disabled:opacity-40 rounded-full p-1 border"
onClick={props.onDownNote}
disabled={props.noteIndex === props.notesLength - 1}>
<div innerHTML={removeIconSize(IconArrowNarrowDown)} class="w-8 h-8" />
Expand Down
2 changes: 1 addition & 1 deletion src/islands/note/components/notes/ImageNote/ImageNote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const ImageNote = ((props: Props) => {
</Show>

{/* 本体 */}
<div class="p-2 rounded border my-2 bg-white" onClick={() => {
<div class="p-2 rounded border my-2 bg-surface" onClick={() => {
props.focus()
if (noteBookState.isEditMode) {
setIsShowEditor(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export default (props: Props) => {
<div class="flex my-2 justify-center gap-5">
<div class="flex gap-2">
<button
class="grid hover:drop-shadow drop-shadow-none disabled:drop-shadow-none disabled:bg-gray-100 rounded-full p-1 bg-white border"
class="grid hover:drop-shadow drop-shadow-none disabled:drop-shadow-none bg-secondary text-on-secondary disabled:bg-secondary-container disabled:text-on-secondary-container rounded-full p-1 border"
onClick={() => {
setEditMode('move')
}}
Expand All @@ -334,7 +334,7 @@ export default (props: Props) => {
<div innerHTML={removeIconSize(IconArrowsMove)} class="w-8 h-8" />
</button>
<button
class="grid hover:drop-shadow drop-shadow-none disabled:drop-shadow-none disabled:bg-gray-100 rounded-full p-1 bg-white border"
class="grid hover:drop-shadow drop-shadow-none disabled:drop-shadow-none bg-secondary text-on-secondary disabled:bg-secondary-container disabled:text-on-secondary-container rounded-full p-1 border"
onClick={() => {
setEditMode('paint')
}}
Expand All @@ -343,7 +343,7 @@ export default (props: Props) => {
<div innerHTML={IconHighlight} class="w-8 h-8" />
</button>
<button
class="grid hover:drop-shadow drop-shadow-none disabled:drop-shadow-none disabled:bg-gray-100 rounded-full p-1 bg-white border"
class="grid hover:drop-shadow drop-shadow-none disabled:drop-shadow-none bg-secondary text-on-secondary disabled:bg-secondary-container disabled:text-on-secondary-container rounded-full p-1 border"
onClick={() => {
setEditMode('clear')
}}
Expand Down

0 comments on commit a989e28

Please sign in to comment.