style(商品): 表格内下拉统一 compact(对齐配送,避免控件撑破列宽)
14 列 + 全尺寸下拉放不下;配送做法是 compact。给搜索型下拉统一加 compact。
This commit is contained in:
@@ -2361,6 +2361,7 @@ export const SkuManagement: React.FC = () => {
|
||||
className="px-6 py-4 whitespace-nowrap text-sm text-slate-600 dark:text-slate-300"
|
||||
>
|
||||
<SearchableSelect
|
||||
compact
|
||||
className="min-w-[200px]"
|
||||
value={getInlineDraft(sku).category_code}
|
||||
onChange={(value) => handleInlineCategoryChange(sku, value)}
|
||||
@@ -2501,6 +2502,7 @@ export const SkuManagement: React.FC = () => {
|
||||
return (
|
||||
<td key={col.id} className="px-6 py-4">
|
||||
<SearchableSelect
|
||||
compact
|
||||
className="min-w-[160px]"
|
||||
value={sku.preferred_supplier_code || ''}
|
||||
onChange={(value) => void handleInlinePreferredSupplierChange(sku, value)}
|
||||
@@ -2516,6 +2518,7 @@ export const SkuManagement: React.FC = () => {
|
||||
return (
|
||||
<td key={col.id} className="px-6 py-4 whitespace-nowrap">
|
||||
<SearchableSelect
|
||||
compact
|
||||
className="min-w-[90px]"
|
||||
value={String(getInlineDraft(sku).status)}
|
||||
onChange={(value) => handleInlineStatusChange(sku, parseInt(value, 10) || 0)}
|
||||
@@ -2677,6 +2680,7 @@ export const SkuManagement: React.FC = () => {
|
||||
{t('products.form.category')} <span className="text-red-500">*</span>
|
||||
</label>
|
||||
<SearchableSelect
|
||||
compact
|
||||
value={formData.category_code}
|
||||
onChange={(v) => {
|
||||
const nextRate = taxRateManualOverrideRef.current
|
||||
@@ -2711,6 +2715,7 @@ export const SkuManagement: React.FC = () => {
|
||||
{t('products.form.unit')} <span className="text-red-500">*</span>
|
||||
</label>
|
||||
<SearchableSelect
|
||||
compact
|
||||
value={formData.unit}
|
||||
onChange={(v) => {
|
||||
const pricingSame =
|
||||
@@ -2763,6 +2768,7 @@ export const SkuManagement: React.FC = () => {
|
||||
{t('products.form.pricingUnit')}
|
||||
</label>
|
||||
<SearchableSelect
|
||||
compact
|
||||
value={formData.pricing_unit}
|
||||
onChange={(v) => setFormData({ ...formData, pricing_unit: v })}
|
||||
options={unitOptions}
|
||||
@@ -3142,6 +3148,7 @@ export const SkuManagement: React.FC = () => {
|
||||
)}
|
||||
</label>
|
||||
<SearchableSelect
|
||||
compact
|
||||
value={quoteSheetCode}
|
||||
onChange={setQuoteSheetCode}
|
||||
allowEmpty
|
||||
|
||||
Reference in New Issue
Block a user