migrate tier list

This commit is contained in:
tresabhi committed 2026-11-27 14:57:39 -06:00
1 parent be8e36c6fd
commit 5d9c07eb3a
108 files changed
+1238 -922

No files matched your search

@@ -0,0 +1,24 @@
/* Spans the whole slot; its padding keeps the bar off the slot's edges */
.marker {
position: fixed;
z-index: 1;
box-sizing: border-box;
padding: var(--space-4) 0;
transform: translateX(-50%);
pointer-events: none;
opacity: 0;
&[data-visible="true"] {
opacity: 1;
}
.bar {
width: var(--space-1);
height: 100%;
border-radius: var(--radius-max);
background-color: var(--accent-12);
}
}
@@ -0,0 +1,15 @@
import type { Ref } from "react";
import styles from "./index.module.css";
interface InsertionMarkerProps {
ref: Ref<HTMLDivElement>;
}
// One shared bar, positioned by whatever is being dragged since only it knows where it would land
export function InsertionMarker({ ref }: InsertionMarkerProps) {
return (
<div ref={ref} className={styles.marker}>
<div className={styles.bar} />
</div>
);
}