File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 158158 type =" button"
159159 @click =" toggleMobileMore"
160160 >
161- <span class =" mobile-nav-more- icon" >•••</ span >
161+ <svg class =" mobile-nav-icon" >< use href = " #icon-shezhi " ></ use ></ svg >
162162 <span >我的</span >
163163 </button >
164164 </nav >
@@ -556,15 +556,15 @@ export default defineComponent({
556556 width: 100 % ;
557557 height: 100 % ;
558558 display: grid;
559- grid- template- columns: 40px minmax (0 , 1fr ) minmax (76px , auto) 40px ;
559+ grid- template- columns: 40px minmax (0 , 1fr ) minmax (84px , auto) 40px ;
560560 align- items: center;
561561 gap: 6px ;
562562 padding: env (safe- area- inset- top) 10px 0 ;
563563 background: var (-- dp- bg- shell);
564564}
565565
566566.mobile - top- bar .home - theme- visible {
567- grid- template- columns: 40px minmax (0 , 1fr ) 36px minmax (76px , auto) 40px ;
567+ grid- template- columns: 40px minmax (0 , 1fr ) 36px minmax (84px , auto) 40px ;
568568}
569569
570570.mobile - brand,
@@ -583,17 +583,19 @@ export default defineComponent({
583583}
584584
585585.mobile - search- pill {
586- min- width: 76px ;
586+ width: 84px ;
587+ min- width: 84px ;
587588 height: 36px ;
588589 border: 1px solid var (-- dp- border- subtle);
589590 border- radius: 999px ;
590591 background: var (-- dp- bg- surface- muted);
591592 color: var (-- dp- text- secondary);
592- display: inline- flex;
593+ display: grid;
594+ grid- template- columns: 18px 1fr 18px ;
593595 align- items: center;
594- justify- content : center;
595- gap: 5px ;
596- padding: 0 12px ;
596+ justify- items : center;
597+ gap: 0 ;
598+ padding: 0 10px ;
597599 font- size: 13px ;
598600 font- weight: 800 ;
599601 font- family: inherit;
@@ -647,6 +649,11 @@ export default defineComponent({
647649 white- space: nowrap;
648650}
649651
652+ .mobile - search- pill span {
653+ grid- column: 2 ;
654+ text- align: center;
655+ }
656+
650657.mobile - action- icon {
651658 width: 18px ;
652659 height: 18px ;
Original file line number Diff line number Diff line change 150150 @end =" handleDragEnd"
151151 item-key =" id"
152152 class =" drag-container"
153+ handle =" .parser-drag-handle"
154+ :delay =" 180"
155+ :delay-on-touch-only =" true"
156+ :touch-start-threshold =" 8"
157+ :fallback-tolerance =" 8"
158+ ghost-class =" parser-drag-ghost"
159+ chosen-class =" parser-drag-chosen"
153160 >
154161 <template #item =" { element: parser } " >
155162 <div class =" parser-item" :class =" { disabled: !parser.enabled }" >
@@ -927,6 +934,15 @@ onMounted(async () => {
927934 border-bottom : 1px solid var (--dp-border-subtle );
928935 transition : background 0.2s ease ;
929936 background : var (--dp-bg-surface );
937+ touch-action : pan-y ;
938+ }
939+
940+ .parser-drag-ghost {
941+ opacity : 0.7 ;
942+ }
943+
944+ .parser-drag-chosen {
945+ background : var (--dp-bg-surface-muted );
930946}
931947
932948.parser-item :last-child {
@@ -950,6 +966,9 @@ onMounted(async () => {
950966 margin-right : 12px ;
951967 cursor : grab ;
952968 color : var (--dp-text-tertiary );
969+ touch-action : none ;
970+ user-select : none ;
971+ -webkit-user-select : none ;
953972}
954973
955974.parser-drag-handle :active {
You can’t perform that action at this time.
0 commit comments