@@ -10,7 +10,6 @@ import {
} from '~/client/util/bookmark-utils';
import { toastError } from '~/client/util/toastr';
import { FolderIcon } from '~/components/Icons/FolderIcon';
-import { TriangleIcon } from '~/components/Icons/TriangleIcon';
import {
BookmarkFolderItems, DragItemDataType, DragItemType, DRAG_ITEM_TYPE,
} from '~/interfaces/bookmark-info';
@@ -234,7 +233,7 @@ export const BookmarkFolderItem: FC<BookmarkFolderItemProps> = (props: BookmarkF
onClick={loadChildFolder}
>
<div className="d-flex justify-content-center">
- <TriangleIcon />
+ <span className="material-icons-round">arrow_right</span>
</div>
</button>
)}
@@ -40,7 +40,7 @@ $grw-bookmark-item-padding-left: 35px;
}
.grw-foldertree-triangle-btn {
- background-color: transparent;
+ border: 0;
transition: all 0.2s ease-out;
transform: rotate(0deg);
@@ -58,7 +58,9 @@ $grw-bookmark-item-padding-left: 35px;
.grw-foldertree-item-container {
.grw-triangle-container {
- min-width: 35px;
+ // TODO: ignore width frickering
+ // https://redmine.weseek.co.jp/issues/130828
+ // min-width: 35px;
height: 40px;
@@ -1,15 +0,0 @@
-import React from 'react';
-
-export const TriangleIcon = (): JSX.Element => (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- width="12"
- height="12"
- viewBox="0 0 12 12"
- >
- <g transform="translate(18194 -6790)">
- <rect width="12" height="12" transform="translate(-18194 6790)" fill="none" />
- <path d="M5.2,1.067a1,1,0,0,1,1.6,0l4,5.333A1,1,0,0,1,10,8H2a1,1,0,0,1-.8-1.6Z" transform="translate(-18183 6790) rotate(90)" />
- </g>
- </svg>
-);
@@ -20,7 +20,6 @@ import { bookmark, unbookmark, resumeRenameOperation } from '~/client/services/p
import { apiv3Put, apiv3Post } from '~/client/util/apiv3-client';
import { ValidationTarget } from '~/client/util/input-validator';
import { toastWarning, toastError, toastSuccess } from '~/client/util/toastr';
import { NotAvailableForGuest } from '~/components/NotAvailableForGuest';
import { NotAvailableForReadOnlyUser } from '~/components/NotAvailableForReadOnlyUser';
import { useSWRMUTxCurrentUserBookmarks } from '~/stores/bookmark';
@@ -445,7 +444,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
onClick={onClickLoadChildren}
@@ -41,7 +41,7 @@ $grw-pagetree-item-container-height: 40px;
.grw-pagetree-triangle-btn {
@@ -67,7 +67,9 @@ $grw-pagetree-item-container-height: 40px;
.grw-pagetree-item-container {
height: $grw-pagetree-item-container-height;
@@ -151,3 +153,10 @@ $grw-pagetree-item-container-height: 40px;
+
+.grw-pagetree :global {
+ .grw-pagetree-triangle-btn {
+ --btn-color: var(--bs-tertiary-color);
+ }
+}