mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-18 16:48:30 +09:00
client: tweak ui
This commit is contained in:
parent
e46bb2f948
commit
14fa8b177d
@ -34,7 +34,7 @@ export default defineComponent({
|
|||||||
const content = ref<HTMLElement>();
|
const content = ref<HTMLElement>();
|
||||||
const margin = ref(0);
|
const margin = ref(0);
|
||||||
const adjust = (rect: { width: number; height: number; }) => {
|
const adjust = (rect: { width: number; height: number; }) => {
|
||||||
if (rect.width > (props.contentMax || 500)) {
|
if (rect.width > props.contentMax || rect.width > 500) {
|
||||||
margin.value = props.marginMax;
|
margin.value = props.marginMax;
|
||||||
} else {
|
} else {
|
||||||
margin.value = props.marginMin;
|
margin.value = props.marginMin;
|
||||||
|
@ -649,7 +649,7 @@ export default defineComponent({
|
|||||||
text: this.$ts.pin,
|
text: this.$ts.pin,
|
||||||
action: () => this.togglePin(true)
|
action: () => this.togglePin(true)
|
||||||
} : undefined,
|
} : undefined,
|
||||||
...(this.$i.isModerator || this.$i.isAdmin ? [
|
/*...(this.$i.isModerator || this.$i.isAdmin ? [
|
||||||
null,
|
null,
|
||||||
{
|
{
|
||||||
icon: 'fas fa-bullhorn',
|
icon: 'fas fa-bullhorn',
|
||||||
@ -657,7 +657,7 @@ export default defineComponent({
|
|||||||
action: this.promote
|
action: this.promote
|
||||||
}]
|
}]
|
||||||
: []
|
: []
|
||||||
),
|
),*/
|
||||||
...(this.appearNote.userId != this.$i.id ? [
|
...(this.appearNote.userId != this.$i.id ? [
|
||||||
null,
|
null,
|
||||||
{
|
{
|
||||||
|
@ -623,6 +623,7 @@ export default defineComponent({
|
|||||||
text: this.$ts.pin,
|
text: this.$ts.pin,
|
||||||
action: () => this.togglePin(true)
|
action: () => this.togglePin(true)
|
||||||
} : undefined,
|
} : undefined,
|
||||||
|
/*
|
||||||
...(this.$i.isModerator || this.$i.isAdmin ? [
|
...(this.$i.isModerator || this.$i.isAdmin ? [
|
||||||
null,
|
null,
|
||||||
{
|
{
|
||||||
@ -631,7 +632,7 @@ export default defineComponent({
|
|||||||
action: this.promote
|
action: this.promote
|
||||||
}]
|
}]
|
||||||
: []
|
: []
|
||||||
),
|
),*/
|
||||||
...(this.appearNote.userId != this.$i.id ? [
|
...(this.appearNote.userId != this.$i.id ? [
|
||||||
null,
|
null,
|
||||||
{
|
{
|
||||||
|
@ -632,6 +632,7 @@ export default defineComponent({
|
|||||||
text: this.$ts.pin,
|
text: this.$ts.pin,
|
||||||
action: () => this.togglePin(true)
|
action: () => this.togglePin(true)
|
||||||
} : undefined,
|
} : undefined,
|
||||||
|
/*
|
||||||
...(this.$i.isModerator || this.$i.isAdmin ? [
|
...(this.$i.isModerator || this.$i.isAdmin ? [
|
||||||
null,
|
null,
|
||||||
{
|
{
|
||||||
@ -640,7 +641,7 @@ export default defineComponent({
|
|||||||
action: this.promote
|
action: this.promote
|
||||||
}]
|
}]
|
||||||
: []
|
: []
|
||||||
),
|
),*/
|
||||||
...(this.appearNote.userId != this.$i.id ? [
|
...(this.appearNote.userId != this.$i.id ? [
|
||||||
null,
|
null,
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user