Skip to content

Commit

Permalink
fix(*): make filter input width take up max available space [KHCP-990…
Browse files Browse the repository at this point in the history
…7] (#1196)
  • Loading branch information
mptap authored Feb 29, 2024
1 parent 6432ba9 commit 9775060
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
appearance="primary"
data-testid="toolbar-add-ca-certificate"
icon="plus"
size="large"
:to="config.createRoute"
>
{{ t('ca-certificates.list.toolbar_actions.new_ca_certificate') }}
Expand Down Expand Up @@ -483,7 +484,7 @@ onBeforeMount(async () => {
width: 100%;
.kong-ui-entity-filter-input {
width: 300px;
margin-right: $kui-space-50;
}
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
appearance="primary"
data-testid="toolbar-add-certificate"
icon="plus"
size="large"
:to="config.createRoute"
>
{{ t('certificates.list.toolbar_actions.new_certificate') }}
Expand Down Expand Up @@ -550,7 +551,7 @@ onBeforeMount(async () => {
width: 100%;
.kong-ui-entity-filter-input {
width: 300px;
margin-right: $kui-space-50;
}
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
appearance="primary"
data-testid="toolbar-add-credential"
icon="plus"
size="large"
:to="config.createRoute"
>
{{ t(`credentials.list.toolbar_actions.${config.plugin}.new`) }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
appearance="primary"
data-testid="toolbar-add-consumer-group"
icon="plus"
size="large"
:to="config.consumerId ? undefined : config.createRoute"
@click="() => config.consumerId ? handleAddToGroupClick() : undefined"
>
Expand Down Expand Up @@ -612,7 +613,7 @@ onBeforeMount(async () => {
width: 100%;
.kong-ui-entity-filter-input {
width: 300px;
margin-right: $kui-space-50;
}
.exit-modal-message {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
appearance="primary"
data-testid="toolbar-add-consumer"
icon="plus"
size="large"
:to="config.consumerGroupId ? undefined : config.createRoute"
@click="() => config.consumerGroupId ? handleAddConsumerClick() : undefined"
>
Expand Down Expand Up @@ -626,7 +627,7 @@ onBeforeMount(async () => {
}
.kong-ui-entity-filter-input {
width: 300px;
margin-right: $kui-space-50;
}
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
appearance="primary"
data-testid="toolbar-add-gateway-service"
icon="plus"
size="large"
:to="config.createRoute"
>
{{ t('gateway_services.list.toolbar_actions.new_gateway_service') }}
Expand Down Expand Up @@ -556,7 +557,7 @@ onBeforeMount(async () => {
width: 100%;
.kong-ui-entity-filter-input {
width: 300px;
margin-right: $kui-space-50;
}
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
appearance="primary"
data-testid="toolbar-add-key-set"
icon="plus"
size="large"
:to="config.createRoute"
>
{{ t('keySets.list.toolbar_actions.new_key_set') }}
Expand Down Expand Up @@ -484,7 +485,7 @@ onBeforeMount(async () => {
width: 100%;
.kong-ui-entity-filter-input {
width: 300px;
margin-right: $kui-space-50;
}
}
</style>
3 changes: 2 additions & 1 deletion packages/entities/entities-keys/src/components/KeyList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
appearance="primary"
data-testid="toolbar-add-key"
icon="plus"
size="large"
:to="config.createRoute"
>
{{ t('keys.list.toolbar_actions.new_key') }}
Expand Down Expand Up @@ -493,7 +494,7 @@ onBeforeMount(async () => {
width: 100%;
.kong-ui-entity-filter-input {
width: 300px;
margin-right: $kui-space-50;
}
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
appearance="primary"
data-testid="toolbar-add-plugin"
icon="plus"
size="large"
:to="config.createRoute"
>
{{ t('plugins.list.toolbar_actions.new_plugin') }}
Expand Down Expand Up @@ -771,7 +772,7 @@ onBeforeMount(async () => {
width: 100%;
.kong-ui-entity-filter-input {
width: 330px;
margin-right: $kui-space-50;
}
.table-content-overflow-wrapper {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
appearance="primary"
data-testid="toolbar-add-route"
icon="plus"
size="large"
:to="config.createRoute"
>
{{ t('routes.list.toolbar_actions.new_route') }}
Expand Down Expand Up @@ -541,7 +542,7 @@ onBeforeMount(async () => {
width: 100%;
.kong-ui-entity-filter-input {
width: 300px;
margin-right: $kui-space-50;
}
}
</style>
3 changes: 2 additions & 1 deletion packages/entities/entities-snis/src/components/SniList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
appearance="primary"
data-testid="toolbar-add-sni"
icon="plus"
size="large"
:to="config.createRoute"
>
{{ t('snis.list.toolbar_actions.new') }}
Expand Down Expand Up @@ -481,7 +482,7 @@ onBeforeMount(async () => {
width: 100%;
.kong-ui-entity-filter-input {
width: 300px;
margin-right: $kui-space-50;
}
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
appearance="primary"
data-testid="toolbar-add-upstream"
icon="plus"
size="large"
:to="config.createRoute"
>
{{ t('upstreams.list.toolbar_actions.new_upstream') }}
Expand Down Expand Up @@ -462,7 +463,7 @@ onBeforeMount(async () => {
<style lang="scss" scoped>
.kong-ui-entities-upstreams-list {
.kong-ui-entity-filter-input {
width: 300px;
margin-right: $kui-space-50;
}
.upstream-name {
font-weight: 600;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
appearance="primary"
data-testid="toolbar-add-vault"
icon="plus"
size="large"
:to="config.createRoute"
>
{{ t('vaults.list.toolbar_actions.new_vault') }}
Expand Down Expand Up @@ -482,7 +483,7 @@ onBeforeMount(async () => {
width: 100%;
.kong-ui-entity-filter-input {
width: 300px;
margin-right: $kui-space-50;
}
.table-content-overflow-wrapper {
Expand Down

0 comments on commit 9775060

Please sign in to comment.