mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 11:27:31 -07:00
style: truncate long URL's
This commit is contained in:
parent
f540438740
commit
3927086608
1 changed files with 9 additions and 2 deletions
|
@ -2,8 +2,9 @@
|
||||||
<component
|
<component
|
||||||
:is="self ? 'MkA' : 'a'"
|
:is="self ? 'MkA' : 'a'"
|
||||||
ref="el"
|
ref="el"
|
||||||
class="ieqqeuvs _link"
|
class="ieqqeuvs url _link"
|
||||||
:[attr]="self ? props.url.substring(local.length) : props.url"
|
:[attr]="self ? props.url.substring(local.length) : props.url"
|
||||||
|
:title="self ? props.url.substring(local.length) : props.url"
|
||||||
:rel="rel"
|
:rel="rel"
|
||||||
:target="target"
|
:target="target"
|
||||||
@contextmenu.stop="() => {}"
|
@contextmenu.stop="() => {}"
|
||||||
|
@ -73,8 +74,14 @@ const target = self ? null : "_blank";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.ieqqeuvs {
|
.url {
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
|
word-break: break-all;
|
||||||
|
white-space: nowrap;
|
||||||
|
max-width: 80%;
|
||||||
|
display: inline-block;
|
||||||
|
overflow: clip;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
|
||||||
> .icon {
|
> .icon {
|
||||||
padding-left: 2px;
|
padding-left: 2px;
|
||||||
|
|
Loading…
Reference in a new issue