diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-07 17:55:16 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-07 17:55:16 +0900 |
| commit | 5f869e5d8735f3c058554b59e2c33f40ae7ef959 (patch) | |
| tree | e168b1a886844f93551d2c6be43415c16017e050 /src/client/components/ui | |
| parent | Improve docs (diff) | |
| download | sharkey-5f869e5d8735f3c058554b59e2c33f40ae7ef959.tar.gz sharkey-5f869e5d8735f3c058554b59e2c33f40ae7ef959.tar.bz2 sharkey-5f869e5d8735f3c058554b59e2c33f40ae7ef959.zip | |
Improve client
Diffstat (limited to 'src/client/components/ui')
| -rw-r--r-- | src/client/components/ui/button.vue | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/components/ui/button.vue b/src/client/components/ui/button.vue index c92f30db97..8a83943825 100644 --- a/src/client/components/ui/button.vue +++ b/src/client/components/ui/button.vue @@ -1,6 +1,6 @@ <template> <component class="bghgjjyj _button" - :is="link ? 'a' : 'button'" + :is="link ? 'MkA' : 'button'" :class="{ inline, primary, danger, full }" :type="type" @click="$emit('click', $event)" @@ -115,6 +115,7 @@ export default defineComponent({ z-index: 1; // 他コンポーネントのbox-shadowに隠されないようにするため display: block; min-width: 100px; + width: min-content; padding: 8px 14px; text-align: center; font-weight: normal; @@ -125,6 +126,7 @@ export default defineComponent({ background: var(--buttonBg); border-radius: 999px; overflow: hidden; + box-sizing: border-box; &:not(:disabled):hover { background: var(--buttonHoverBg); |