Просмотр исходного кода

Revert "correct input position"

This reverts commit 3d8cfa0b15dc44e05c45b0c04c54dce99b17697d.
akinori-u 2 лет назад
Родитель
Сommit
bbbb343ccd
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      apps/app/src/components/Sidebar/PageTreeItem/Ellipsis.tsx

+ 2 - 3
apps/app/src/components/Sidebar/PageTreeItem/Ellipsis.tsx

@@ -1,6 +1,5 @@
-import type { FC } from 'react';
 import React, {
-  useCallback, useState,
+  useCallback, useState, FC,
 } from 'react';
 
 import nodePath from 'path';
@@ -129,7 +128,7 @@ export const Ellipsis: FC<TreeItemToolProps> = (props) => {
   return (
     <>
       {isRenameInputShown ? (
-        <div className="position-absolute ms-5">
+        <div className="flex-fill">
           <NotDraggableForClosableTextInput>
             <ClosableTextInput
               value={nodePath.basename(page.path ?? '')}