chore: 🎨 format

This commit is contained in:
ThatOneCalculator 2023-06-26 14:51:45 -07:00
parent 2e5af9c94a
commit 7575a04a5f
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
6 changed files with 27 additions and 18 deletions

View File

@ -55,7 +55,6 @@ import { defaultStore } from "@/store";
import { i18n } from "@/i18n"; import { i18n } from "@/i18n";
import * as os from "@/os"; import * as os from "@/os";
const props = defineProps<{ const props = defineProps<{
image: misskey.entities.DriveFile; image: misskey.entities.DriveFile;
raw?: boolean; raw?: boolean;
@ -73,8 +72,8 @@ const url =
function captionPopup() { function captionPopup() {
os.alert({ os.alert({
type: "info", type: "info",
text: props.image.comment text: props.image.comment,
}) });
} }
// Plugin:register_note_view_interruptor 使watch // Plugin:register_note_view_interruptor 使watch

View File

@ -85,8 +85,8 @@ const hide = ref(
function captionPopup() { function captionPopup() {
os.alert({ os.alert({
type: "info", type: "info",
text: props.video.comment text: props.video.comment,
}) });
} }
onMounted(() => { onMounted(() => {

View File

@ -225,7 +225,7 @@ function choose(visibility: (typeof misskey.noteVisibilities)[number]): void {
} }
.itemDescription { .itemDescription {
opacity: .6; opacity: 0.6;
display: block; display: block;
line-height: 1.5; line-height: 1.5;
} }

View File

@ -361,8 +361,18 @@ onMounted(() => {
position: absolute; position: absolute;
inset: 0; inset: 0;
border: 2px solid var(--accentDarken); border: 2px solid var(--accentDarken);
mask: linear-gradient(to right, transparent,black 40% 60%,transparent); mask: linear-gradient(
-webkit-mask: linear-gradient(to right, transparent,black 40% 60%,transparent); to right,
transparent,
black 40% 60%,
transparent
);
-webkit-mask: linear-gradient(
to right,
transparent,
black 40% 60%,
transparent
);
} }
> button { > button {
display: flex; display: flex;
@ -370,7 +380,7 @@ onMounted(() => {
top: 120%; top: 120%;
margin-inline: auto; margin-inline: auto;
border-radius: 2em; border-radius: 2em;
padding: .5em 1.2em; padding: 0.5em 1.2em;
background: var(--accentedBg); background: var(--accentedBg);
border: 0; border: 0;
color: var(--accent); color: var(--accent);
@ -378,7 +388,7 @@ onMounted(() => {
pointer-events: all; pointer-events: all;
transform: translateY(-100%); transform: translateY(-100%);
opacity: 0; opacity: 0;
animation: reset .4s forwards cubic-bezier(0,.4,0,1.1), animation: reset 0.4s forwards cubic-bezier(0, 0.4, 0, 1.1),
slideUp 1s 5s forwards cubic-bezier(1, 0, 1, 1); slideUp 1s 5s forwards cubic-bezier(1, 0, 1, 1);
&::before { &::before {
content: ""; content: "";
@ -388,9 +398,9 @@ onMounted(() => {
z-index: -1; z-index: -1;
} }
i { i {
margin-left: .7em; margin-left: 0.7em;
border-left: 1px solid var(--accentedBg); border-left: 1px solid var(--accentedBg);
padding-left: .4em; padding-left: 0.4em;
} }
} }
} }