summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-05-05 15:17:53 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-05-05 15:17:53 +0900
commit05203e2cf0f7129dbc542d8d5abfa3c36a75e410 (patch)
tree90b8d0f7ed32be62304b28a3357bdf702b157924 /src
parentMerge branch 'develop' (diff)
parent12.80.2 (diff)
downloadmisskey-05203e2cf0f7129dbc542d8d5abfa3c36a75e410.tar.gz
misskey-05203e2cf0f7129dbc542d8d5abfa3c36a75e410.tar.bz2
misskey-05203e2cf0f7129dbc542d8d5abfa3c36a75e410.zip
Merge branch 'develop'
Diffstat (limited to 'src')
-rw-r--r--src/client/components/date-separated-list.vue2
-rw-r--r--src/client/components/global/ad.vue28
-rw-r--r--src/client/ui/default.widgets.vue9
3 files changed, 25 insertions, 14 deletions
diff --git a/src/client/components/date-separated-list.vue b/src/client/components/date-separated-list.vue
index c7ca67582a..9636ee053c 100644
--- a/src/client/components/date-separated-list.vue
+++ b/src/client/components/date-separated-list.vue
@@ -90,7 +90,7 @@ export default defineComponent({
} else {
if (this.ad && item._shouldInsertAd_) {
return [h(MkAd, {
- class: 'ad',
+ class: 'a', // advertiseの意(ブロッカー対策)
key: item.id + ':ad',
prefer: 'horizontal',
}), el];
diff --git a/src/client/components/global/ad.vue b/src/client/components/global/ad.vue
index 53e6e8b8bb..ee2a7ebe92 100644
--- a/src/client/components/global/ad.vue
+++ b/src/client/components/global/ad.vue
@@ -85,16 +85,23 @@ export default defineComponent({
background-image: repeating-linear-gradient(45deg, transparent, transparent 8px, var(--ad) 8px, var(--ad) 14px );
> .main {
+ text-align: center;
+
> a {
- display: block;
+ display: inline-block;
position: relative;
- margin: 0 auto;
+ vertical-align: bottom;
+
+ &:hover {
+ > img {
+ filter: contrast(120%);
+ }
+ }
> img {
display: block;
- width: 100%;
- height: 100%;
object-fit: contain;
+ margin: auto;
}
> .menu {
@@ -106,23 +113,26 @@ export default defineComponent({
}
&.square {
- > a {
+ > a ,
+ > a > img {
max-width: min(300px, 100%);
- max-height: min(300px, 100%);
+ max-height: 300px;
}
}
&.horizontal {
padding: 8px;
- > a {
+ > a ,
+ > a > img {
max-width: min(600px, 100%);
- max-height: min(100px, 100%);
+ max-height: 80px;
}
}
&.vertical {
- > a {
+ > a ,
+ > a > img {
max-width: min(100px, 100%);
}
}
diff --git a/src/client/ui/default.widgets.vue b/src/client/ui/default.widgets.vue
index 0dd073409b..c475e4272c 100644
--- a/src/client/ui/default.widgets.vue
+++ b/src/client/ui/default.widgets.vue
@@ -1,7 +1,7 @@
<template>
-<div class="efzpzdvf">
+<div class="ddiqwdnk">
<XWidgets class="widgets" :edit="editMode" :widgets="$store.reactiveState.widgets.value" @add-widget="addWidget" @remove-widget="removeWidget" @update-widget="updateWidget" @update-widgets="updateWidgets" @exit="editMode = false"/>
- <MkAd prefer="square"/>
+ <MkAd class="ad" prefer="square"/>
<button v-if="editMode" @click="editMode = false" class="_textButton edit" style="font-size: 0.9em;"><i class="fas fa-check"></i> {{ $ts.editWidgetsExit }}</button>
<button v-else @click="editMode = true" class="_textButton edit" style="font-size: 0.9em;"><i class="fas fa-pencil-alt"></i> {{ $ts.editWidgets }}</button>
@@ -57,13 +57,14 @@ export default defineComponent({
</script>
<style lang="scss" scoped>
-.efzpzdvf {
+.ddiqwdnk {
position: sticky;
height: min-content;
box-sizing: border-box;
padding-bottom: 8px;
- > .widgets {
+ > .widgets,
+ > .ad {
width: 300px;
}