style: truncate long URL's

This commit is contained in:
freeplay 2023-07-04 21:37:50 -04:00
parent f540438740
commit 3927086608

View file

@ -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;