diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-15 20:26:44 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-08-15 20:26:44 +0900 |
| commit | cced83024bfb578ee802ab13fc8af72a1be9a1e1 (patch) | |
| tree | 359d6a3eff6250600e714e5ec2a5ae2516cd8353 /src/client/components/global | |
| parent | chore: Remove vips from Dockerfile (#7633) (diff) | |
| download | sharkey-cced83024bfb578ee802ab13fc8af72a1be9a1e1.tar.gz sharkey-cced83024bfb578ee802ab13fc8af72a1be9a1e1.tar.bz2 sharkey-cced83024bfb578ee802ab13fc8af72a1be9a1e1.zip | |
feat: ノートの翻訳機能
Resolve #5213
Diffstat (limited to 'src/client/components/global')
| -rw-r--r-- | src/client/components/global/loading.vue | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/client/components/global/loading.vue b/src/client/components/global/loading.vue index 9b810f0a16..7bde53c12e 100644 --- a/src/client/components/global/loading.vue +++ b/src/client/components/global/loading.vue @@ -1,5 +1,5 @@ <template> -<div class="yxspomdl" :class="{ inline, colored }"> +<div class="yxspomdl" :class="{ inline, colored, mini }"> <div class="ring"></div> </div> </template> @@ -18,7 +18,12 @@ export default defineComponent({ type: Boolean, required: false, default: true - } + }, + mini: { + type: Boolean, + required: false, + default: false + }, } }); </script> @@ -38,6 +43,8 @@ export default defineComponent({ text-align: center; cursor: wait; + --size: 48px; + &.colored { color: var(--accent); } @@ -45,19 +52,12 @@ export default defineComponent({ &.inline { display: inline; padding: 0; + --size: 32px; + } - > .ring:after { - width: 32px; - height: 32px; - } - - > .ring { - &:before, - &:after { - width: 32px; - height: 32px; - } - } + &.mini { + padding: 16px; + --size: 32px; } > .ring { @@ -70,8 +70,8 @@ export default defineComponent({ content: " "; display: block; box-sizing: border-box; - width: 48px; - height: 48px; + width: var(--size); + height: var(--size); border-radius: 50%; border: solid 4px; } |