add reset width
This commit is contained in:
parent
a10a4d02b4
commit
1db56bcfbb
|
@ -638,6 +638,7 @@ p:not(:last-child) {
|
|||
text-align: left;
|
||||
padding: 5px;
|
||||
height: 70px;
|
||||
text-align: center;
|
||||
}
|
||||
.notf-exclude-btn:hover {
|
||||
background-color: inherit !important;
|
||||
|
|
|
@ -1019,12 +1019,13 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||
//このトゥート内のアクションを完了させるために、適当にIDを振る
|
||||
var rand = randomStr(8)
|
||||
//プラグイン機構
|
||||
var plugin = plugins.buttonOnToot
|
||||
var pluginBOT = plugins.buttonOnToot
|
||||
var pluginHtml = ''
|
||||
for (let target of plugin) {
|
||||
for (let target of pluginBOT) {
|
||||
const meta = getMeta(target.content)
|
||||
pluginHtml = pluginHtml + `<li><a onclick="execPlugin('${target.id}','buttonOnToot',{id: '${uniqueid}', acct_id: '${acct_id}'});">${escapeHTML(meta.name)}</a></li>`
|
||||
}
|
||||
|
||||
templete =
|
||||
templete +
|
||||
`<div
|
||||
|
|
|
@ -438,6 +438,11 @@ function parseColumn(target, dontclose) {
|
|||
<i class="material-icons nex" title="${lang.lang_layout_reconnect}">refresh</i>
|
||||
<br />
|
||||
${lang.lang_layout_reconnect}
|
||||
</a>
|
||||
<a onclick="resetWidth('${key}')" class="setting nex waves-effect">
|
||||
<i class="material-icons nex" title="${lang.lang_layout_resetWidth}">refresh</i>
|
||||
<br />
|
||||
${lang.lang_layout_resetWidth}
|
||||
</a><br />
|
||||
${lang.lang_layout_headercolor}
|
||||
<br>
|
||||
|
@ -930,3 +935,11 @@ function leftFoldRemove(key) {
|
|||
localStorage.setItem('column', json)
|
||||
parseColumn()
|
||||
}
|
||||
function resetWidth(key) {
|
||||
var multi = localStorage.getItem('column')
|
||||
var obj = JSON.parse(multi)
|
||||
obj[key].width = null
|
||||
var json = JSON.stringify(obj)
|
||||
localStorage.setItem('column', json)
|
||||
$(`#timeline_box_${key}_parentBox`).attr('style', '')
|
||||
}
|
|
@ -153,6 +153,7 @@
|
|||
"lang_layout_unread": "Unread",
|
||||
"lang_layout_tagManager": "Tag timeline manager",
|
||||
"lang_layout_announ": "Announcement: the counter is the number of your unread announcements. If not shown, it means announcements are all marked as read.",
|
||||
"lang_layout_resetWidth": "Stretch this column",
|
||||
"lang_sort_gothis": "Go to this column",
|
||||
"lang_sort_remthis": "Delete this column",
|
||||
"lang_spotify_img": "Attach an album artwork",
|
||||
|
|
|
@ -152,6 +152,7 @@
|
|||
"lang_layout_unread": "未読",
|
||||
"lang_layout_tagManager": "タグタイムラインをいじる",
|
||||
"lang_layout_announ": "お知らせ: 数字は未読数や。表示されてんときはもう読んでしもたいうことやな。",
|
||||
"lang_layout_resetWidth": "横幅自動調節",
|
||||
"lang_sort_gothis": "このカラムへ",
|
||||
"lang_sort_remthis": "このカラムを消す",
|
||||
"lang_spotify_img": "アルバムアートワークを付けるで。",
|
||||
|
|
|
@ -154,6 +154,7 @@
|
|||
"lang_layout_unread": "未読",
|
||||
"lang_layout_tagManager": "タグタイムラインの編集",
|
||||
"lang_layout_announ": "お知らせ: 数字は未読数を表します。表示されていない場合は全て既読です。",
|
||||
"lang_layout_resetWidth": "横幅自動調節",
|
||||
"lang_sort_gothis": "このカラムへ",
|
||||
"lang_sort_remthis": "このカラムを削除",
|
||||
"lang_spotify_img": "アルバムアートワークを添付します。",
|
||||
|
|
Loading…
Reference in New Issue
Block a user