diff --git a/src/assets/images/copy.svg b/src/assets/images/copy.svg new file mode 100644 index 0000000..a4b2c42 --- /dev/null +++ b/src/assets/images/copy.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/images/delete.svg b/src/assets/images/delete.svg new file mode 100644 index 0000000..80171cc --- /dev/null +++ b/src/assets/images/delete.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/images/file-export.svg b/src/assets/images/file-export.svg new file mode 100644 index 0000000..572b7e2 --- /dev/null +++ b/src/assets/images/file-export.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/images/rename.svg b/src/assets/images/rename.svg new file mode 100644 index 0000000..3c030b9 --- /dev/null +++ b/src/assets/images/rename.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/styles/tables.css b/src/assets/styles/tables.css new file mode 100644 index 0000000..99fab4d --- /dev/null +++ b/src/assets/styles/tables.css @@ -0,0 +1,77 @@ +.rounded-bg { + padding: 40px 5px 5px; + background-color: white; + border-radius: 5px; + position: relative; + border: 1px solid var(--color-border-light); +} +.header-container { + overflow: hidden; + position: absolute; + top: -1px;; + left: -1px; + width: calc(100% + 2px); + padding-left: 7px; + box-sizing: border-box; + background-color: var(--color-bg-dark); + border-radius: 5px 5px 0 0; +} + +.header-container > div { + display: flex; + width: fit-content; + padding-right: 10px; +} +.table-container { + width: 100%; + overflow: auto; +} +table { + min-width: 100%; + margin-top: -40px; + border-collapse: collapse; +} +thead th, .fixed-header { + font-size: 14px; + font-weight: 600; + box-sizing: border-box; + background-color: var(--color-bg-dark); + color: var(--color-text-light); + border-right: 1px solid var(--color-border-light); +} +tbody td { + font-size: 13px; + background-color:white; + color: var(--color-text-base); + box-sizing: border-box; + border-bottom: 1px solid var(--color-border-light); + border-right: 1px solid var(--color-border-light); +} +td, th, .fixed-header { + padding: 12px 24px; + white-space: nowrap; +} + +tbody tr td:last-child, +thead tr th:last-child, +.header-container div .fixed-header:last-child { + border-right: none; +} + +td > div.cell-data { + width: -webkit-max-content; + width: -moz-max-content; + width: max-content; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} +.table-footer { + display: flex; + justify-content: space-between; + padding: 6px 12px; +} +.table-footer-count { + font-size: 11px; + color: var(--color-text-base); +} diff --git a/src/components/SqlTable.vue b/src/components/SqlTable.vue index cb40adf..b03025d 100644 --- a/src/components/SqlTable.vue +++ b/src/components/SqlTable.vue @@ -1,7 +1,7 @@