Skip to content

Commit

Permalink
Fixed issue with long links
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerner committed Mar 26, 2019
1 parent ab50aed commit ebb85f5
Show file tree
Hide file tree
Showing 6 changed files with 108 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,19 @@
.SkybrudPropertyEditors.LinkPicker .umbraco-gte76 .linkpicker-preview__action--red:hover {
color: #fe3e39;
}
.SkybrudPropertyEditors.LinkPicker .linkpicker-preview__name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 60%;
}
.umb-overlay .SkybrudPropertyEditors.LinkPicker .linkpicker-preview,
.umb-overlay .SkybrudPropertyEditors.LinkPicker .linkpicker-preview-add {
max-width: initial;
}
.umb-overlay .SkybrudPropertyEditors.LinkPicker .linkpicker-preview__name {
max-width: 275px;
}
.SkybrudPropertyEditors.LinkPickerOptions .optionGroup .optionGroupTitle {
margin-bottom: 20px;
background: #f8f8f8;
Expand Down Expand Up @@ -282,4 +295,4 @@
.umb-modal .SkybrudPropertyEditors.LinkPicker .linkpicker-preview,
.umb-modal .SkybrudPropertyEditors.LinkPicker .linkpicker-preview-add {
max-width: initial;
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,24 @@
color: #fe3e39;
}

}




@{PreviewPrefix}__name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 60%;
}


.umb-overlay & @{PreviewPrefix},
.umb-overlay & @{PreviewPrefix}-add {
max-width: initial;
}

.umb-overlay & @{PreviewPrefix}__name {
max-width: 275px;
}
4 changes: 4 additions & 0 deletions src/Skybrud.LinkPicker/Skybrud.LinkPicker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,10 @@
</ItemGroup>
<ItemGroup>
<Content Include="App_Plugins\Skybrud.LinkPicker\Styles\_preview.less" />
<None Include="compilerconfig.json" />
<None Include="compilerconfig.json.defaults">
<DependentUpon>compilerconfig.json</DependentUpon>
</None>
<None Include="LICENSE.html" />
<Content Include="packages.config" />
<Content Include="App_Plugins\Skybrud.LinkPicker\package.manifest" />
Expand Down
6 changes: 6 additions & 0 deletions src/Skybrud.LinkPicker/compilerconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
"outputFile": "App_Plugins/Skybrud.LinkPicker/Styles/LinkPicker.css",
"inputFile": "App_Plugins/Skybrud.LinkPicker/Styles/LinkPicker.less"
}
]
63 changes: 63 additions & 0 deletions src/Skybrud.LinkPicker/compilerconfig.json.defaults
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"compilers": {
"less": {
"autoPrefix": "",
"cssComb": "none",
"ieCompat": true,
"strictMath": false,
"strictUnits": false,
"relativeUrls": true,
"rootPath": "",
"sourceMapRoot": "",
"sourceMapBasePath": "",
"sourceMap": false
},
"sass": {
"autoPrefix": "",
"includePath": "",
"indentType": "space",
"indentWidth": 2,
"outputStyle": "nested",
"Precision": 5,
"relativeUrls": true,
"sourceMapRoot": "",
"lineFeed": "",
"sourceMap": false
},
"stylus": {
"sourceMap": false
},
"babel": {
"sourceMap": false
},
"coffeescript": {
"bare": false,
"runtimeMode": "node",
"sourceMap": false
},
"handlebars": {
"root": "",
"noBOM": false,
"name": "",
"namespace": "",
"knownHelpersOnly": false,
"forcePartial": false,
"knownHelpers": [],
"commonjs": "",
"amd": false,
"sourceMap": false
}
},
"minifiers": {
"css": {
"enabled": true,
"termSemicolons": true,
"gzip": false
},
"javascript": {
"enabled": true,
"termSemicolons": true,
"gzip": false
}
}
}

0 comments on commit ebb85f5

Please sign in to comment.