refactor(member): drop the unused second-sticky-column table option

This commit is contained in:
Simon 2026-07-06 15:42:01 +02:00
parent 0cc37f7e9b
commit 4adb6be5e5

View file

@ -1012,11 +1012,6 @@ defmodule MvWeb.CoreComponents do
doc:
"when true, first header/body column gets sticky left positioning to keep selection controls visible"
attr :sticky_second_col, :boolean,
default: false,
doc:
"when true, the second column is also pinned left (e.g. an identifier column kept visible while scrolling horizontally)"
attr :viewport_bottom, :any,
default: nil,
doc:
@ -1083,8 +1078,7 @@ defmodule MvWeb.CoreComponents do
class={[
table_th_class(col, @sticky_header),
@sticky_first_col && col_idx == 0 &&
"sticky-first-col-th sticky left-0 z-30 bg-base-100",
@sticky_second_col && col_idx == 1 && "sticky left-12 z-30 bg-base-100"
"sticky-first-col-th sticky left-0 z-30 bg-base-100"
]}
aria-sort={table_th_aria_sort(col, @sort_field, @sort_order)}
>
@ -1160,13 +1154,6 @@ defmodule MvWeb.CoreComponents do
classes
end
classes =
if @sticky_second_col && col_idx == 1 do
["sticky left-12 z-20 bg-base-100" | classes]
else
classes
end
classes =
if col_class == nil || (col_class && !String.contains?(col_class, "text-center")) do
["truncate" | classes]