1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 19:37:28 +00:00

Add repo setting tip when disable Metadata (#7623)

* Add repo setting tip when disable Metadata

* can not use button when disable metadata
This commit is contained in:
Michael An
2025-03-17 11:17:22 +08:00
committed by GitHub
parent f44e6eea7d
commit e60eb83c93
7 changed files with 113 additions and 55 deletions

View File

@@ -9,10 +9,6 @@
cursor: pointer;
}
.seahub-switch.small .custom-switch-indicator.disabled {
cursor: default;
}
.seahub-switch.small .custom-switch-indicator:before {
height: 8px;
width: 8px;
@@ -21,3 +17,8 @@
.seahub-switch.small .custom-switch-input:checked~.custom-switch-indicator:before {
left: 12px;
}
.seahub-switch.disabled .custom-switch,
.seahub-switch .custom-switch-indicator.disabled {
cursor: not-allowed;
}

View File

@@ -6,7 +6,7 @@ import './index.css';
function Switch({ onChange, checked, placeholder, disabled, className, size, textPosition = 'left', setRef }) {
return (
<div className={classnames('seahub-switch position-relative', className, size)} ref={setRef}>
<div className={classnames('seahub-switch position-relative', className, size, { 'disabled': disabled })} ref={setRef}>
<label className="custom-switch">
<input
className="custom-switch-input"