diff --git a/dao/src/main/resources/sql/schema.sql b/dao/src/main/resources/sql/schema.sql index 96e7adad7d..93e906c7ca 100644 --- a/dao/src/main/resources/sql/schema.sql +++ b/dao/src/main/resources/sql/schema.sql @@ -53,7 +53,7 @@ CREATE TABLE IF NOT EXISTS attribute_kv ( attribute_type varchar(255), attribute_key varchar(255), bool_v boolean, - str_v varchar, + str_v varchar(10000000), long_v bigint, dbl_v double precision, last_update_ts bigint, @@ -197,7 +197,7 @@ CREATE TABLE IF NOT EXISTS ts_kv ( key varchar(255) NOT NULL, ts bigint NOT NULL, bool_v boolean, - str_v varchar, + str_v varchar(10000000), long_v bigint, dbl_v double precision, CONSTRAINT ts_kv_unq_key UNIQUE (entity_type, entity_id, key, ts) diff --git a/ui/src/app/dashboard/states/default-state-controller.js b/ui/src/app/dashboard/states/default-state-controller.js index c4138848e2..d4e5ba6543 100644 --- a/ui/src/app/dashboard/states/default-state-controller.js +++ b/ui/src/app/dashboard/states/default-state-controller.js @@ -210,7 +210,7 @@ export default function DefaultStateController($scope, $location, $state, $state function updateLocation() { if (vm.stateObject[0].id) { - $location.search({state : utils.objToBase64(vm.stateObject)}); + $location.search('state', utils.objToBase64(vm.stateObject)); } } } diff --git a/ui/src/app/dashboard/states/entity-state-controller.js b/ui/src/app/dashboard/states/entity-state-controller.js index 8d5cddd7b8..bcee7f1e50 100644 --- a/ui/src/app/dashboard/states/entity-state-controller.js +++ b/ui/src/app/dashboard/states/entity-state-controller.js @@ -288,9 +288,9 @@ export default function EntityStateController($scope, $location, $state, $stateP function updateLocation() { if (vm.stateObject[vm.stateObject.length-1].id) { if (isDefaultState()) { - $location.search({state : null}); + $location.search('state', null); } else { - $location.search({state : utils.objToBase64(vm.stateObject)}); + $location.search('state', utils.objToBase64(vm.stateObject)); } } } diff --git a/ui/src/app/entity/attribute/attribute-table.scss b/ui/src/app/entity/attribute/attribute-table.scss index 3358230654..cdf9ffdd0d 100644 --- a/ui/src/app/entity/attribute/attribute-table.scss +++ b/ui/src/app/entity/attribute/attribute-table.scss @@ -27,6 +27,14 @@ md-toolbar.md-table-toolbar.alternate { } .md-table { + &.tb-attribute-table { + table-layout: fixed; + td.md-cell { + &.tb-value-cell { + overflow: auto; + } + } + } .md-cell { ng-md-icon { fill: $md-edit-icon-fill; diff --git a/ui/src/app/entity/attribute/attribute-table.tpl.html b/ui/src/app/entity/attribute/attribute-table.tpl.html index 2566a08161..3dfad597fc 100644 --- a/ui/src/app/entity/attribute/attribute-table.tpl.html +++ b/ui/src/app/entity/attribute/attribute-table.tpl.html @@ -125,7 +125,7 @@ - +
@@ -137,7 +137,7 @@ -
attribute.last-update-time
{{attribute.lastUpdateTs | date : 'yyyy-MM-dd HH:mm:ss'}} {{attribute.key}} + {{attribute.value}}