Project

General

Profile

Patch #44436 » 0001-Change-the-My-page-block-sort-handle-icon-to-arrows-.patch

Mizuki ISHIKAWA, 2026-09-09 03:04

View differences:

app/assets/images/icons.svg
79 79
    <symbol viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" id="icon--arrow-right">
80 80
      <path d="M4 9h8v-3.586a1 1 0 0 1 1.707 -.707l6.586 6.586a1 1 0 0 1 0 1.414l-6.586 6.586a1 1 0 0 1 -1.707 -.707v-3.586h-8a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1"/>
81 81
    </symbol>
82
    <symbol viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" id="icon--arrows-move">
83
      <path d="M18 9l3 3l-3 3"/>
84
      <path d="M15 12h6"/>
85
      <path d="M6 9l-3 3l3 3"/>
86
      <path d="M3 12h6"/>
87
      <path d="M9 18l3 3l3 -3"/>
88
      <path d="M12 15v6"/>
89
      <path d="M15 6l-3 -3l-3 3"/>
90
      <path d="M12 3v6"/>
91
    </symbol>
82 92
    <symbol viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" id="icon--attachment">
83 93
      <path d="M15 7l-6.5 6.5a1.5 1.5 0 0 0 3 3l6.5 -6.5a3 3 0 0 0 -6 -6l-6.5 6.5a4.5 4.5 0 0 0 9 9l6.5 -6.5"/>
84 94
    </symbol>
app/helpers/my_helper.rb
34 34
  def render_block(block, user)
35 35
    content = render_block_content(block, user)
36 36
    if content.present?
37
      handle = content_tag('span', sprite_icon('reorder', ''), :class => 'icon-only icon-sort-handle sort-handle', :title => l(:button_move))
37
      handle = content_tag('span', sprite_icon('arrows-move', ''), :class => 'icon-only icon-sort-handle sort-handle', :title => l(:button_move))
38 38
      close = link_to(sprite_icon('close', l(:button_delete)),
39 39
                      {:action => "remove_block", :block => block},
40 40
                      :remote => true, :method => 'post',
config/icon_source.yml
97 97
  svg: chart-bar
98 98
- name: reorder
99 99
  svg: menu-order
100
- name: arrows-move
101
  svg: arrows-move
100 102
- name: close
101 103
  svg: square-x
102 104
- name: checked
(3-3/3)