move table styling to table, enlarge value column

feat/vaults
Tomáš Mládek 2021-07-03 20:34:20 +02:00
parent d137436d79
commit bd2ce5462f
2 changed files with 36 additions and 32 deletions

View File

@ -3,7 +3,7 @@
<table>
<colgroup>
<col class="attr-action-col" />
<col />
<col class="attr-col" />
<col />
</colgroup>
<tr>
@ -157,7 +157,41 @@ export default defineComponent({
</script>
<style lang="scss" scoped>
.more-button {
table {
width: 100%;
table-layout: fixed;
th {
text-align: left;
}
td {
font-family: var(--monospace-font);
padding-right: 1em;
line-height: 1em;
line-break: anywhere;
&.attr-action {
max-width: 1em;
}
}
.attr-action-col {
width: 1.5em;
}
.attr-col {
width: 25%;
}
sl-icon-button {
&::part(base) {
padding: 2px;
}
}
.more-button {
width: 100%;
}
}
</style>

View File

@ -184,36 +184,6 @@ export default defineComponent({
<style lang="scss">
.inspect {
table {
width: 100%;
table-layout: fixed;
th {
text-align: left;
}
td {
font-family: var(--monospace-font);
padding-right: 1em;
line-height: 1em;
line-break: anywhere;
&.attr-action {
max-width: 1em;
}
}
.attr-action-col {
width: 1.5em;
}
sl-icon-button {
&::part(base) {
padding: 2px;
}
}
}
section {
position: relative;
overflow: visible;