diff --git a/drag/demo/demo.view.css.ts b/drag/demo/demo.view.css.ts index c78b647d7c9..2d81412ada2 100644 --- a/drag/demo/demo.view.css.ts +++ b/drag/demo/demo.view.css.ts @@ -3,6 +3,15 @@ namespace $.$$ { const {rem,px} = $mol_style_unit $mol_style_define( $mol_drag_demo , { + + Task_content: { + padding: $mol_gap.text, + color: $mol_theme.control, + + ':hover': { + background: $mol_theme.hover, + }, + }, Task_drop:{ '@': { diff --git a/drag/demo/demo.view.tree b/drag/demo/demo.view.tree index 072b94dd44e..9469db173a6 100644 --- a/drag/demo/demo.view.tree +++ b/drag/demo/demo.view.tree @@ -21,8 +21,7 @@ $mol_drag_demo $mol_example_large Sub <= Task_drop* $mol_drop adopt?transfer <=> transfer_adopt?transfer null receive?obj <=> receive_before*?obj null - Sub <= Task_link* $mol_link - uri <= task_uri* \ + Sub <= Task_content* $mol_text sub / <= task_title* \ tags / \drag diff --git a/drag/demo/demo.view.ts b/drag/demo/demo.view.ts index 98ecebb6981..a49be46ab4c 100644 --- a/drag/demo/demo.view.ts +++ b/drag/demo/demo.view.ts @@ -39,7 +39,7 @@ namespace $.$$ { transfer_adopt( transfer : DataTransfer ) { - const uri = transfer.getData( "text/uri-list" ) + const uri = transfer.getData( "text/uri-list" ) || transfer.getData( "text/plain" ) if( !uri ) return return this.task_list().find( task => this.task_uri( task ) === uri )