mirror of
https://github.com/nicolabs/mastodon-timeline-widget.git
synced 2026-04-10 16:06:45 +02:00
fix links in comments + force wrap long lines ot text
This commit is contained in:
parent
64ca41c2e3
commit
be1bf9f816
|
|
@ -4,8 +4,8 @@
|
|||
* ライセンスに関して、LICENSEファイルを参照下さい。
|
||||
* see license file for details.
|
||||
*
|
||||
* @author Azet <https://azet.jp>
|
||||
* @version 1.0
|
||||
* @author Azet <http://www.azet.jp>
|
||||
* @version 1.01
|
||||
*/
|
||||
|
||||
/* main container >>> */
|
||||
|
|
@ -39,6 +39,17 @@
|
|||
.mt-body {
|
||||
height: 250px;
|
||||
overflow-y: auto;
|
||||
|
||||
/* force wrap */
|
||||
white-space: pre-wrap; /* css-3 */
|
||||
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
|
||||
white-space: -pre-wrap; /* Opera 4-6 */
|
||||
white-space: -o-pre-wrap; /* Opera 7 */
|
||||
word-wrap: break-word; /* Internet Explorer 5.5+ */
|
||||
}
|
||||
|
||||
.mt-body .invisible {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mt-loading {
|
||||
|
|
@ -176,3 +187,5 @@ a.btn-spoiler {
|
|||
color: #393F4F;
|
||||
}
|
||||
/* <<< */
|
||||
|
||||
/* vim set foldmethod=marker foldlevel=0 */
|
||||
|
|
|
|||
|
|
@ -4,16 +4,16 @@
|
|||
* ライセンスに関して、LICENSEファイルを参照下さい。
|
||||
* see license file for details.
|
||||
*
|
||||
* @author Azet <https://azet.jp>
|
||||
* @version 1.0
|
||||
* @author Azet <http://www.azet.jp>
|
||||
* @version 1.01
|
||||
* @param object params_
|
||||
* instance_uri : the instance to fetch messages from
|
||||
* access_token : widget's application access token (can be generated from http://azet.jp/mastodon-usertimeline-widget/)
|
||||
* access_token : widget's application access token (can be generated from http://www.azet.jp/mastodon.wizard/wizard_en.html)
|
||||
* account_id : user account id to fetch messages of
|
||||
* target_selector : HTML node selector (jquery/css style)
|
||||
* toots_limit : max toots display count (default 20 like API)
|
||||
*/
|
||||
var MastodonApi = function(params_) {
|
||||
this.build = 2;
|
||||
|
||||
// endpoint access settings
|
||||
this.INSTANCE_URI = params_.instance_uri;
|
||||
|
|
@ -60,11 +60,10 @@ var MastodonApi = function(params_) {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* texts
|
||||
*/
|
||||
MastodonApi.prototype.text = {
|
||||
}
|
||||
|
||||
/* widget Attributes */
|
||||
MastodonApi.build = 2; // later for version comparisons if needed
|
||||
MastodonApi.version = "1.01"; // display
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue