refactor: extract common resize handle styles into a reusable component.
This commit is contained in:
@@ -393,11 +393,11 @@ const DocumentViewerPanel: React.FC<DocumentViewerPanelProps> = ({
|
||||
const resizeHandle = isSidebarVariant ? (
|
||||
<button
|
||||
type="button"
|
||||
className={`detail-panel__resize-handle${isPanelResizing ? ' is-active' : ''}`}
|
||||
className={`resize-handle resize-handle--left${isPanelResizing ? ' is-active' : ''}`}
|
||||
aria-label="Resize detail panel"
|
||||
{...resizeHandleProps}
|
||||
>
|
||||
<span aria-hidden="true" />
|
||||
<span className="resize-handle__line" aria-hidden="true" />
|
||||
</button>
|
||||
) : null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user