mirror of
https://github.com/openvk/openvk
synced 2025-06-07 22:59:58 +03:00
fix(repost window): change margins
This commit is contained in:
parent
0be8514619
commit
8d734ae528
1 changed files with 11 additions and 8 deletions
|
@ -1967,10 +1967,10 @@ async function repost(id, repost_type = 'post') {
|
||||||
title: tr('share'),
|
title: tr('share'),
|
||||||
unique_name: 'repost_modal',
|
unique_name: 'repost_modal',
|
||||||
body: `
|
body: `
|
||||||
<div class='display_flex_column' style='gap: 1px;'>
|
<div class='display_flex_column' style='gap: 5px;'>
|
||||||
<b>${tr('auditory')}</b>
|
<b>${tr('auditory')}</b>
|
||||||
|
|
||||||
<div class='display_flex_column'>
|
<div class='display_flex_column' style="gap: 2px;padding-left: 1px;">
|
||||||
<label>
|
<label>
|
||||||
<input type="radio" name="repost_type" value="wall" checked>
|
<input type="radio" name="repost_type" value="wall" checked>
|
||||||
${tr("in_wall")}
|
${tr("in_wall")}
|
||||||
|
@ -1986,6 +1986,7 @@ async function repost(id, repost_type = 'post') {
|
||||||
|
|
||||||
<b>${tr('your_comment')}</b>
|
<b>${tr('your_comment')}</b>
|
||||||
|
|
||||||
|
<div style="padding-left: 1px;">
|
||||||
<input type='hidden' id='repost_attachments'>
|
<input type='hidden' id='repost_attachments'>
|
||||||
<textarea id='repostMsgInput' placeholder='...'></textarea>
|
<textarea id='repostMsgInput' placeholder='...'></textarea>
|
||||||
|
|
||||||
|
@ -1994,6 +1995,7 @@ async function repost(id, repost_type = 'post') {
|
||||||
<label><input type='checkbox' name="signed">${tr('add_signature')}</label>
|
<label><input type='checkbox' name="signed">${tr('add_signature')}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
`,
|
`,
|
||||||
buttons: [tr('send'), tr('cancel')],
|
buttons: [tr('send'), tr('cancel')],
|
||||||
callbacks: [
|
callbacks: [
|
||||||
|
@ -2060,7 +2062,7 @@ async function repost(id, repost_type = 'post') {
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
u('.ovk-diag-body').attr('style', 'padding: 14px;')
|
u('.ovk-diag-body').attr('style', 'padding: 18px;')
|
||||||
u('.ovk-diag-body').on('change', `input[name='repost_type']`, (e) => {
|
u('.ovk-diag-body').on('change', `input[name='repost_type']`, (e) => {
|
||||||
const value = e.target.value
|
const value = e.target.value
|
||||||
|
|
||||||
|
@ -2086,6 +2088,7 @@ async function repost(id, repost_type = 'post') {
|
||||||
|
|
||||||
if(window.openvk.writeableClubs.items.length < 1) {
|
if(window.openvk.writeableClubs.items.length < 1) {
|
||||||
u(`input[name='repost_type'][value='group']`).attr('disabled', 'disabled')
|
u(`input[name='repost_type'][value='group']`).attr('disabled', 'disabled')
|
||||||
|
u(`input[name='repost_type'][value='group']`).closest("label").addClass("lagged")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue