Skip to content

Commit 61670f4

Browse files
committed
fix create button position and headline bottom
1 parent eda39a0 commit 61670f4

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "svelte-generic-crud-table",
3-
"version": "1.5.21",
3+
"version": "1.5.22",
44
"description": "<crud-table> renders object-arrays with options-panel and inline edit per row. Dispatches events for ongoing data handling. As self-containing webcomponent or for Svelte in 60KB",
55
"main": "dist/build/crud-table.js",
66
"module": "dist/build/crud-table.mjs",

src/SvelteGenericCrudTable.svelte

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
disabled>{genericCrudTable.makeCapitalLead(elem.name)}</textarea>
166166
</div>
167167
{/each}
168-
<div id="labelOptions" class="headline">
168+
<div id="labelOptions" class="td headline">
169169
<!-- /* istanbul ignore next line */ -->
170170
{#if options.includes(CREATE)}
171171
<div class="options blue" on:click={handleCreate}
@@ -295,11 +295,19 @@
295295
}
296296
297297
.thead {
298+
display: inline-flex;
299+
padding: 0 0 0.4em 0;
300+
}
301+
302+
.row {
298303
display: inline-flex;
299304
padding: 0;
300-
margin: 0;
305+
margin: 0 0 1px;
301306
}
302307
308+
.row:hover {
309+
background-color: #efefef;
310+
}
303311
304312
.sortable {
305313
cursor: pointer;
@@ -313,8 +321,9 @@
313321
border-left: 0.1em solid #efefef;
314322
font-size: 0.95em;
315323
font-weight: 200;
316-
padding: 1px 0 1px 0.4em;
324+
padding: 0.2em 0 0.1em 0.4em;
317325
float: left;
326+
margin-top: 0.2em;
318327
}
319328
320329
.headline {
@@ -324,6 +333,8 @@
324333
max-height: 1.3em;
325334
height: 1.3em;
326335
font-weight: 300;
336+
padding: 0 0 0.3em 0.4em;
337+
margin-bottom: 0.3em;
327338
}
328339
329340
#labelOptions {
@@ -366,17 +377,6 @@
366377
display: block;
367378
}
368379
369-
370-
.row {
371-
display: inline-flex;
372-
padding: 0;
373-
margin: 0 0 1px;
374-
}
375-
376-
.row:hover {
377-
background-color: #efefef;
378-
}
379-
380380
textarea {
381381
position: relative;
382382
resize: inherit;

0 commit comments

Comments
 (0)