Skip to content

Commit aaa0940

Browse files
committed
fix table inner text alignment
1 parent 8d19830 commit aaa0940

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

frontend/packages/volto-keywordmanager/src/components/KeywordView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ const KeywordView = (props) => {
282282
</div>
283283
</div>
284284
<Table
285-
className="react-aria-Table cmsui-table"
285+
className="react-aria-Table cmsui-table top"
286286
selectionMode="multiple"
287287
selectedKeys={selectedKeys}
288288
onSelectionChange={setSelectedKeys}

frontend/packages/volto-keywordmanager/src/theme/main.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@
160160
padding: 0;
161161
margin: 15px 0;
162162

163+
&.top .react-aria-Cell {
164+
vertical-align: top;
165+
}
166+
163167
.react-aria-TableHeader {
164168
.react-aria-Column {
165169
padding: 15px 10px;
@@ -168,9 +172,13 @@
168172
white-space: nowrap;
169173
}
170174

171-
svg:not(.active) {
172-
padding-left: 10px;
173-
opacity: 0.5;
175+
svg {
176+
vertical-align: center;
177+
178+
&:not(.active) {
179+
padding-left: 10px;
180+
opacity: 0.5;
181+
}
174182
}
175183
}
176184

@@ -207,7 +215,7 @@
207215
padding: 20px 10px;
208216
border: none;
209217
font-size: 16px;
210-
vertical-align: top;
218+
line-height: 16px;
211219
white-space: nowrap;
212220

213221
&[data-key$=':keyword'],

0 commit comments

Comments
 (0)