11import React from "react" ;
2- import { Card , Button , Space , Divider , Tag } from "antd" ;
2+ import { Card , Button , Space , Divider , Tag , Typography } from "antd" ;
33import {
44 CheckCircleOutlined ,
55 CloseCircleOutlined ,
@@ -10,24 +10,30 @@ import {
1010
1111/**
1212 * Classification Panel Component
13- * Controls for classifying selected layers
13+ * Controls for classifying selected slices
1414 */
1515function ClassificationPanel ( {
1616 selectedCount,
1717 onClassify,
1818 onSelectAll,
1919 onClearSelection,
2020} ) {
21+ const { Text } = Typography ;
22+
2123 return (
2224 < div style = { { padding : "16px" } } >
2325 < Card
2426 title = "Classification"
2527 size = "small"
26- style = { { marginBottom : "16px" } }
28+ style = { {
29+ marginBottom : "12px" ,
30+ background : "#fff" ,
31+ boxShadow : "0 6px 20px rgba(15, 23, 42, 0.06)" ,
32+ } }
2733 >
2834 < div style = { { marginBottom : "16px" } } >
2935 < Tag color = { selectedCount > 0 ? "blue" : "default" } >
30- { selectedCount } layer { selectedCount !== 1 ? "s" : "" } selected
36+ { selectedCount } slice { selectedCount !== 1 ? "s" : "" } selected
3137 </ Tag >
3238 </ div >
3339
@@ -38,7 +44,7 @@ function ClassificationPanel({
3844 onClick = { ( ) => onClassify ( "correct" ) }
3945 disabled = { selectedCount === 0 }
4046 block
41- style = { { background : "#52c41a " , borderColor : "#52c41a " } }
47+ style = { { background : "#22c55e " , borderColor : "#22c55e " } }
4248 >
4349 Correct (C)
4450 </ Button >
@@ -59,17 +65,24 @@ function ClassificationPanel({
5965 disabled = { selectedCount === 0 }
6066 block
6167 style = { {
62- background : "#faad14 " ,
63- borderColor : "#faad14 " ,
64- color : "#fff " ,
68+ background : "#f59e0b " ,
69+ borderColor : "#f59e0b " ,
70+ color : "#1f2937 " ,
6571 } }
6672 >
6773 Unsure (U)
6874 </ Button >
6975 </ Space >
7076 </ Card >
7177
72- < Card title = "Selection" size = "small" >
78+ < Card
79+ title = "Selection"
80+ size = "small"
81+ style = { {
82+ background : "#fff" ,
83+ boxShadow : "0 6px 20px rgba(15, 23, 42, 0.06)" ,
84+ } }
85+ >
7386 < Space direction = "vertical" style = { { width : "100%" } } size = "small" >
7487 < Button icon = { < SelectOutlined /> } onClick = { onSelectAll } block >
7588 Select All (Ctrl+A)
@@ -91,12 +104,14 @@ function ClassificationPanel({
91104 < div
92105 style = { {
93106 padding : "12px" ,
94- background : "#f5f5f5 " ,
107+ background : "#f8fafc " ,
95108 borderRadius : "4px" ,
96109 fontSize : "12px" ,
97110 } }
98111 >
99- < h4 style = { { marginTop : 0 , fontSize : "13px" } } > Keyboard Shortcuts:</ h4 >
112+ < Text strong style = { { fontSize : 12 } } >
113+ Keyboard shortcuts
114+ </ Text >
100115 < ul style = { { marginBottom : 0 , paddingLeft : "20px" } } >
101116 < li >
102117 < kbd > C</ kbd > - Mark as Correct
0 commit comments